#1F4E71#1F4E71

#1F4E71 is a dark, moderate cyan. Relative luminance 0.069; OKLCH L 40.9% C 0.078 H 244.0°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#1F4E71
RGBrgb(31, 78, 113)
HSLhsl(206, 57%, 28%)
HSVhsv(206, 73%, 44%)
CMYKcmyk(72.6%, 31%, 0%, 55.7%)
CIE-LABlab(31.65, -3.37, -24.74)
CIE-LCHlch(31.65, 24.97, 262.24°)
OKLaboklab(40.89% -0.0341 -0.0699)
OKLCHoklch(40.89% 0.078 244)
XYZxyz(6.2690, 6.9317, 16.6271)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E71 #71421F
analogous
#1F716B #1F4E71 #1F2571
triadic
#1F4E71 #711F4E #4E711F
tetradic
#1F4E71 #6B1F71 #71421F #25711F
square
#1F4E71 #6B1F71 #71421F #25711F
split-complementary
#1F4E71 #711F25 #716B1F
monochromatic
#071118 #122D41 #1F4E71 #2C6FA1 #408FCB

Accessibility & contrast

On white

8.80
#1F4E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4E71
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E71#FFFFFF#000000##FFFFFF
##1F4E711.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E4F73
Deuteranopia (green-blind)
#334770
Tritanopia (blue-blind)
#00575A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f4e71;
/* rgb */ color: rgb(31, 78, 113);
/* oklch */ color: oklch(40.9% 0.078 244.0);
Tailwind
colors: {
  custom: {
    50: '#667f9a',
    500: '#1f4e71',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e71;
$custom-light: #667f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e71",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 113
  },
  "hsl": {
    "h": 205.61,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.40891,
    "c": 0.07779,
    "h": 244
  },
  "luminance": 0.06932
}

Semantic roles & 50–950 ramp

primary
#1F4E71
secondary
#A56F47
accent
#8948E0
background
#F6F7F9
surface
#EBEEF2
border
#C6C9CC
text
#060A0E
muted
#7A7C7E

Preview Lab

Preview with #1F4E71

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

Preview Lab → · Contrast checker → · Palette generator →

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