#1F4E72#1F4E72

#1F4E72 is a dark, moderate cyan. Relative luminance 0.070; OKLCH L 40.9% C 0.079 H 244.7°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#1F4E72
RGBrgb(31, 78, 114)
HSLhsl(206, 57%, 28%)
HSVhsv(206, 73%, 45%)
CMYKcmyk(72.8%, 31.6%, 0%, 55.3%)
CIE-LABlab(31.70, -2.99, -25.29)
CIE-LCHlch(31.70, 25.47, 263.26°)
OKLaboklab(40.95% -0.0338 -0.0715)
OKLCHoklch(40.95% 0.079 244.7)
XYZxyz(6.3256, 6.9543, 16.9253)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E72 #72431F
analogous
#1F726C #1F4E72 #1F2472
triadic
#1F4E72 #721F4E #4E721F
tetradic
#1F4E72 #6C1F72 #72431F #24721F
square
#1F4E72 #6C1F72 #72431F #24721F
split-complementary
#1F4E72 #721F24 #726C1F
monochromatic
#071018 #122D42 #1F4E72 #2C6FA2 #408FCB

Accessibility & contrast

On white

8.78
#1F4E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#1F4E72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E72
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E72#FFFFFF#000000##FFFFFF
##1F4E721.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E4F74
Deuteranopia (green-blind)
#324771
Tritanopia (blue-blind)
#00575B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f4e72;
/* rgb */ color: rgb(31, 78, 114);
/* oklch */ color: oklch(40.9% 0.079 244.7);
Tailwind
colors: {
  custom: {
    50: '#667f9a',
    500: '#1f4e72',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e72;
$custom-light: #667f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e72",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 114
  },
  "hsl": {
    "h": 206.024,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.40949,
    "c": 0.07908,
    "h": 244.7
  },
  "luminance": 0.06955
}

Semantic roles & 50–950 ramp

primary
#1F4E72
secondary
#A67047
accent
#8A47E0
background
#F6F7F9
surface
#EBEEF2
border
#C6C9CC
text
#060A0E
muted
#7A7C7E

Preview Lab

Preview with #1F4E72

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

Preview Lab → · Contrast checker → · Palette generator →

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