#1F4F84#1F4F84

#1F4F84 is a dark, moderate cyan. Relative luminance 0.075; OKLCH L 42.3% C 0.102 H 253.3°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#1F4F84
RGBrgb(31, 79, 132)
HSLhsl(211, 62%, 32%)
HSVhsv(211, 77%, 52%)
CMYKcmyk(76.5%, 40.2%, 0%, 48.2%)
CIE-LABlab(33.02, 3.38, -34.39)
CIE-LCHlch(33.02, 34.55, 275.61°)
OKLaboklab(42.31% -0.0295 -0.0981)
OKLCHoklch(42.31% 0.102 253.3)
XYZxyz(7.5244, 7.5484, 22.8857)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F84 #84541F
analogous
#1F8284 #1F4F84 #221F84
triadic
#1F4F84 #841F4F #4F841F
tetradic
#1F4F84 #841F82 #84541F #1F8422
square
#1F4F84 #841F82 #84541F #1F8422
split-complementary
#1F4F84 #84221F #82841F
monochromatic
#081421 #133152 #1F4F84 #2B6DB6 #498BD4

Accessibility & contrast

On white

8.37
#1F4F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#1F4F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4F84
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F84#FFFFFF#000000##FFFFFF
##1F4F841.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365386
Deuteranopia (green-blind)
#264983
Tritanopia (blue-blind)
#005B63
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f4f84;
/* rgb */ color: rgb(31, 79, 132);
/* oklch */ color: oklch(42.3% 0.102 253.3);
Tailwind
colors: {
  custom: {
    50: '#697fa8',
    500: '#1f4f84',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f84;
$custom-light: #697fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f84",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 132
  },
  "hsl": {
    "h": 211.485,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42314,
    "c": 0.10241,
    "h": 253.3
  },
  "luminance": 0.07549
}

Semantic roles & 50–950 ramp

primary
#1F4F84
secondary
#B78248
accent
#9843E5
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #1F4F84

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

Preview Lab → · Contrast checker → · Palette generator →

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