#1F4281#1F4281

#1F4281 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.0% C 0.114 H 261.1°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#1F4281
RGBrgb(31, 66, 129)
HSLhsl(219, 61%, 31%)
HSVhsv(219, 76%, 51%)
CMYKcmyk(76%, 48.8%, 0%, 49.4%)
CIE-LABlab(28.83, 10.97, -39.24)
CIE-LCHlch(28.83, 40.74, 285.62°)
OKLaboklab(39% -0.0177 -0.1126)
OKLCHoklch(39% 0.114 261.1)
XYZxyz(6.4743, 5.7720, 21.5375)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4281 #815E1F
analogous
#1F7381 #1F4281 #2D1F81
triadic
#1F4281 #811F42 #42811F
tetradic
#1F4281 #811F73 #815E1F #1F812D
square
#1F4281 #811F73 #815E1F #1F812D
split-complementary
#1F4281 #812D1F #73811F
monochromatic
#07101E #132950 #1F4281 #2B5BB2 #4779D3

Accessibility & contrast

On white

9.75
#1F4281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#1F4281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4281
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4281#FFFFFF#000000##FFFFFF
##1F42811.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204983
Deuteranopia (green-blind)
#064080
Tritanopia (blue-blind)
#00515B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f4281;
/* rgb */ color: rgb(31, 66, 129);
/* oklch */ color: oklch(39.0% 0.114 261.1);
Tailwind
colors: {
  custom: {
    50: '#6975a6',
    500: '#1f4281',
    950: '#000000',
  },
}
SCSS
$custom: #1f4281;
$custom-light: #6975a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4281",
  "rgb": {
    "r": 31,
    "g": 66,
    "b": 129
  },
  "hsl": {
    "h": 218.571,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.39003,
    "c": 0.11395,
    "h": 261.1
  },
  "luminance": 0.05773
}

Semantic roles & 50–950 ramp

primary
#1F4281
secondary
#B48D48
accent
#AB43E4
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1F4281

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#1F4281 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva