#1F4872#1F4872

#1F4872 is a dark, moderate cyan. Relative luminance 0.061; OKLCH L 39.4% C 0.085 H 251.3°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#1F4872
RGBrgb(31, 72, 114)
HSLhsl(210, 57%, 28%)
HSVhsv(210, 73%, 45%)
CMYKcmyk(72.8%, 36.8%, 0%, 55.3%)
CIE-LABlab(29.76, 0.92, -28.35)
CIE-LCHlch(29.76, 28.36, 271.87°)
OKLaboklab(39.42% -0.0272 -0.0805)
OKLCHoklch(39.42% 0.085 251.3)
XYZxyz(5.9186, 6.1403, 16.7896)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4872 #72491F
analogous
#1F7172 #1F4872 #1F1F72
triadic
#1F4872 #721F48 #48721F
tetradic
#1F4872 #721F71 #72491F #1F721F
square
#1F4872 #721F71 #72491F #1F721F
split-complementary
#1F4872 #721F1F #71721F
monochromatic
#070F18 #122A42 #1F4872 #2C66A2 #4085CB

Accessibility & contrast

On white

9.42
#1F4872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#1F4872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4872
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4872#FFFFFF#000000##FFFFFF
##1F48721.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354A74
Deuteranopia (green-blind)
#294371
Tritanopia (blue-blind)
#005257
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f4872;
/* rgb */ color: rgb(31, 72, 114);
/* oklch */ color: oklch(39.4% 0.085 251.3);
Tailwind
colors: {
  custom: {
    50: '#667a9b',
    500: '#1f4872',
    950: '#000000',
  },
}
SCSS
$custom: #1f4872;
$custom-light: #667a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4872",
  "rgb": {
    "r": 31,
    "g": 72,
    "b": 114
  },
  "hsl": {
    "h": 210.361,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.39424,
    "c": 0.08496,
    "h": 251.3
  },
  "luminance": 0.06141
}

Semantic roles & 50–950 ramp

primary
#1F4872
secondary
#A67747
accent
#9547E0
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#06090E
muted
#7A7B7E

Preview Lab

Preview with #1F4872

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

Preview Lab → · Contrast checker → · Palette generator →

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