#1F406B#1F406B

#1F406B is a dark, moderate cyan. Relative luminance 0.050; OKLCH L 37.0% C 0.084 H 255.9°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#1F406B
RGBrgb(31, 64, 107)
HSLhsl(214, 55%, 27%)
HSVhsv(214, 71%, 42%)
CMYKcmyk(71%, 40.2%, 0%, 58%)
CIE-LABlab(26.79, 3.55, -28.62)
CIE-LCHlch(26.79, 28.83, 277.07°)
OKLaboklab(36.97% -0.0204 -0.0814)
OKLCHoklch(36.97% 0.084 255.9)
XYZxyz(5.0513, 5.0191, 14.6096)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F406B #6B4A1F
analogous
#1F666B #1F406B #241F6B
triadic
#1F406B #6B1F40 #406B1F
tetradic
#1F406B #6B1F66 #6B4A1F #1F6B24
square
#1F406B #6B1F66 #6B4A1F #1F6B24
split-complementary
#1F406B #6B241F #666B1F
monochromatic
#070E18 #11243C #1F406B #2D5C9A #3D79C7

Accessibility & contrast

On white

10.48
#1F406B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#1F406B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F406B
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F406B#FFFFFF#000000##FFFFFF
##1F406B1.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D436D
Deuteranopia (green-blind)
#223C6A
Tritanopia (blue-blind)
#004A50
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f406b;
/* rgb */ color: rgb(31, 64, 107);
/* oklch */ color: oklch(37.0% 0.084 255.9);
Tailwind
colors: {
  custom: {
    50: '#647495',
    500: '#1f406b',
    950: '#000000',
  },
}
SCSS
$custom: #1f406b;
$custom-light: #647495;
$custom-dark: #000000;
JSON
{
  "hex": "#1f406b",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 107
  },
  "hsl": {
    "h": 213.947,
    "s": 55.072,
    "l": 27.059
  },
  "oklch": {
    "l": 0.36967,
    "c": 0.08392,
    "h": 255.9
  },
  "luminance": 0.0502
}

Semantic roles & 50–950 ramp

primary
#1F406B
secondary
#9F7947
accent
#9E49DE
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#06080D
muted
#7A7B7E

Preview Lab

Preview with #1F406B

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

Preview Lab → · Contrast checker → · Palette generator →

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