#1F3873#1F3873

#1F3873 is a dark, moderate blue. Relative luminance 0.044; OKLCH L 35.6% C 0.106 H 264.4°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#1F3873
RGBrgb(31, 56, 115)
HSLhsl(222, 58%, 29%)
HSVhsv(222, 73%, 45%)
CMYKcmyk(73%, 51.3%, 0%, 54.9%)
CIE-LABlab(24.82, 12.31, -36.87)
CIE-LCHlch(24.82, 38.87, 288.46°)
OKLaboklab(35.62% -0.0104 -0.1058)
OKLCHoklch(35.62% 0.106 264.4)
XYZxyz(5.0727, 4.3569, 16.7900)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3873 #735A1F
analogous
#1F6273 #1F3873 #301F73
triadic
#1F3873 #731F38 #38731F
tetradic
#1F3873 #731F62 #735A1F #1F7330
square
#1F3873 #731F62 #735A1F #1F7330
split-complementary
#1F3873 #73301F #62731F
monochromatic
#060C18 #122143 #1F3873 #2C4FA3 #416ACC

Accessibility & contrast

On white

11.22
#1F3873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#1F3873 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3873
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3873#FFFFFF#000000##FFFFFF
##1F38731.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173F75
Deuteranopia (green-blind)
#003772
Tritanopia (blue-blind)
#004650
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f3873;
/* rgb */ color: rgb(31, 56, 115);
/* oklch */ color: oklch(35.6% 0.106 264.4);
Tailwind
colors: {
  custom: {
    50: '#666e9c',
    500: '#1f3873',
    950: '#000000',
  },
}
SCSS
$custom: #1f3873;
$custom-light: #666e9c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3873",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 115
  },
  "hsl": {
    "h": 222.143,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35616,
    "c": 0.10631,
    "h": 264.4
  },
  "luminance": 0.04357
}

Semantic roles & 50–950 ramp

primary
#1F3873
secondary
#A78A47
accent
#B347E1
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #1F3873

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

Preview Lab → · Contrast checker → · Palette generator →

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