#1F3976#1F3976

#1F3976 is a dark, moderate blue. Relative luminance 0.045; OKLCH L 36.1% C 0.109 H 264.3°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#1F3976
RGBrgb(31, 57, 118)
HSLhsl(222, 58%, 29%)
HSVhsv(222, 74%, 46%)
CMYKcmyk(73.7%, 51.7%, 0%, 53.7%)
CIE-LABlab(25.34, 12.81, -37.95)
CIE-LCHlch(25.34, 40.05, 288.66°)
OKLaboklab(36.08% -0.0109 -0.1089)
OKLCHoklch(36.08% 0.109 264.3)
XYZxyz(5.2971, 4.5250, 17.7303)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3976 #765C1F
analogous
#1F6576 #1F3976 #311F76
triadic
#1F3976 #761F39 #39761F
tetradic
#1F3976 #761F65 #765C1F #1F7631
square
#1F3976 #761F65 #765C1F #1F7631
split-complementary
#1F3976 #76311F #65761F
monochromatic
#060C18 #122246 #1F3976 #2C50A6 #426CCD

Accessibility & contrast

On white

11.02
#1F3976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#1F3976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3976
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3976#FFFFFF#000000##FFFFFF
##1F39761.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164078
Deuteranopia (green-blind)
#003875
Tritanopia (blue-blind)
#004752
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f3976;
/* rgb */ color: rgb(31, 57, 118);
/* oklch */ color: oklch(36.1% 0.109 264.3);
Tailwind
colors: {
  custom: {
    50: '#676e9e',
    500: '#1f3976',
    950: '#000000',
  },
}
SCSS
$custom: #1f3976;
$custom-light: #676e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3976",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 118
  },
  "hsl": {
    "h": 222.069,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36081,
    "c": 0.10948,
    "h": 264.3
  },
  "luminance": 0.04526
}

Semantic roles & 50–950 ramp

primary
#1F3976
secondary
#AA8C47
accent
#B346E2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #1F3976

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

Preview Lab → · Contrast checker → · Palette generator →

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