#1F4A71#1F4A71

#1F4A71 is a dark, moderate cyan. Relative luminance 0.064; OKLCH L 39.9% C 0.082 H 248.6°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#1F4A71
RGBrgb(31, 74, 113)
HSLhsl(209, 57%, 28%)
HSVhsv(209, 73%, 44%)
CMYKcmyk(72.6%, 34.5%, 0%, 55.7%)
CIE-LABlab(30.35, -0.78, -26.79)
CIE-LCHlch(30.35, 26.80, 268.32°)
OKLaboklab(39.87% -0.0297 -0.0759)
OKLCHoklch(39.87% 0.082 248.6)
XYZxyz(5.9934, 6.3805, 16.5353)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4A71 #71461F
analogous
#1F716F #1F4A71 #1F2171
triadic
#1F4A71 #711F4A #4A711F
tetradic
#1F4A71 #6F1F71 #71461F #21711F
square
#1F4A71 #6F1F71 #71461F #21711F
split-complementary
#1F4A71 #711F21 #716F1F
monochromatic
#071018 #122B41 #1F4A71 #2C69A1 #4089CB

Accessibility & contrast

On white

9.23
#1F4A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#1F4A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4A71
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4A71#FFFFFF#000000##FFFFFF
##1F4A711.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#394C73
Deuteranopia (green-blind)
#2D4470
Tritanopia (blue-blind)
#005358
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f4a71;
/* rgb */ color: rgb(31, 74, 113);
/* oklch */ color: oklch(39.9% 0.082 248.6);
Tailwind
colors: {
  custom: {
    50: '#657c9a',
    500: '#1f4a71',
    950: '#000000',
  },
}
SCSS
$custom: #1f4a71;
$custom-light: #657c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4a71",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 113
  },
  "hsl": {
    "h": 208.537,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.39868,
    "c": 0.08151,
    "h": 248.6
  },
  "luminance": 0.06381
}

Semantic roles & 50–950 ramp

primary
#1F4A71
secondary
#A57447
accent
#9048E0
background
#F6F7F9
surface
#EBEEF2
border
#C6C9CC
text
#06090E
muted
#7A7B7E

Preview Lab

Preview with #1F4A71

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

Preview Lab → · Contrast checker → · Palette generator →

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