#1F4D71#1F4D71

#1F4D71 is a dark, moderate cyan. Relative luminance 0.068; OKLCH L 40.6% C 0.079 H 245.2°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#1F4D71
RGBrgb(31, 77, 113)
HSLhsl(206, 57%, 28%)
HSVhsv(206, 73%, 44%)
CMYKcmyk(72.6%, 31.9%, 0%, 55.7%)
CIE-LABlab(31.33, -2.73, -25.26)
CIE-LCHlch(31.33, 25.40, 263.83°)
OKLaboklab(40.63% -0.033 -0.0714)
OKLCHoklch(40.63% 0.079 245.2)
XYZxyz(6.1985, 6.7906, 16.6036)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4D71 #71431F
analogous
#1F716C #1F4D71 #1F2471
triadic
#1F4D71 #711F4D #4D711F
tetradic
#1F4D71 #6C1F71 #71431F #24711F
square
#1F4D71 #6C1F71 #71431F #24711F
split-complementary
#1F4D71 #711F24 #716C1F
monochromatic
#071018 #122C41 #1F4D71 #2C6EA1 #408ECB

Accessibility & contrast

On white

8.91
#1F4D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#1F4D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4D71
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4D71#FFFFFF#000000##FFFFFF
##1F4D711.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D4E73
Deuteranopia (green-blind)
#314670
Tritanopia (blue-blind)
#00565A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f4d71;
/* rgb */ color: rgb(31, 77, 113);
/* oklch */ color: oklch(40.6% 0.079 245.2);
Tailwind
colors: {
  custom: {
    50: '#667e9a',
    500: '#1f4d71',
    950: '#000000',
  },
}
SCSS
$custom: #1f4d71;
$custom-light: #667e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4d71",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 113
  },
  "hsl": {
    "h": 206.341,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.40634,
    "c": 0.07867,
    "h": 245.2
  },
  "luminance": 0.06791
}

Semantic roles & 50–950 ramp

primary
#1F4D71
secondary
#A57047
accent
#8B48E0
background
#F6F7F9
surface
#EBEEF2
border
#C6C9CC
text
#060A0E
muted
#7A7C7E

Preview Lab

Preview with #1F4D71

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

Preview Lab → · Contrast checker → · Palette generator →

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