#1F4571#1F4571

#1F4571 is a dark, moderate cyan. Relative luminance 0.057; OKLCH L 38.6% C 0.087 H 253.8°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#1F4571
RGBrgb(31, 69, 113)
HSLhsl(212, 57%, 28%)
HSVhsv(212, 73%, 44%)
CMYKcmyk(72.6%, 38.9%, 0%, 55.7%)
CIE-LABlab(28.74, 2.53, -29.33)
CIE-LCHlch(28.74, 29.44, 274.94°)
OKLaboklab(38.61% -0.0243 -0.0834)
OKLCHoklch(38.61% 0.087 253.8)
XYZxyz(5.6727, 5.7392, 16.4284)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4571 #714B1F
analogous
#1F6E71 #1F4571 #221F71
triadic
#1F4571 #711F45 #45711F
tetradic
#1F4571 #711F6E #714B1F #1F7122
square
#1F4571 #711F6E #714B1F #1F7122
split-complementary
#1F4571 #71221F #6E711F
monochromatic
#070F18 #122841 #1F4571 #2C62A1 #4080CB

Accessibility & contrast

On white

9.78
#1F4571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4571
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4571#FFFFFF#000000##FFFFFF
##1F45711.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314873
Deuteranopia (green-blind)
#254070
Tritanopia (blue-blind)
#004F55
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f4571;
/* rgb */ color: rgb(31, 69, 113);
/* oklch */ color: oklch(38.6% 0.087 253.8);
Tailwind
colors: {
  custom: {
    50: '#65789a',
    500: '#1f4571',
    950: '#000000',
  },
}
SCSS
$custom: #1f4571;
$custom-light: #65789a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4571",
  "rgb": {
    "r": 31,
    "g": 69,
    "b": 113
  },
  "hsl": {
    "h": 212.195,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.38608,
    "c": 0.08687,
    "h": 253.8
  },
  "luminance": 0.0574
}

Semantic roles & 50–950 ramp

primary
#1F4571
secondary
#A57947
accent
#9948E0
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#06080E
muted
#7A7B7E

Preview Lab

Preview with #1F4571

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

Preview Lab → · Contrast checker → · Palette generator →

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