#1F3476#1F3476

#1F3476 is a dark, moderate blue. Relative luminance 0.041; OKLCH L 35.0% C 0.116 H 266.9°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#1F3476
RGBrgb(31, 52, 118)
HSLhsl(226, 58%, 29%)
HSVhsv(226, 74%, 46%)
CMYKcmyk(73.7%, 55.9%, 0%, 53.7%)
CIE-LABlab(23.85, 16.34, -40.34)
CIE-LCHlch(23.85, 43.53, 292.05°)
OKLaboklab(34.95% -0.0063 -0.1161)
OKLCHoklch(34.95% 0.116 266.9)
XYZxyz(5.0619, 4.0548, 17.6519)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3476 #76611F
analogous
#1F6076 #1F3476 #361F76
triadic
#1F3476 #761F34 #34761F
tetradic
#1F3476 #761F60 #76611F #1F7636
square
#1F3476 #761F60 #76611F #1F7636
split-complementary
#1F3476 #76361F #60761F
monochromatic
#060B18 #121F46 #1F3476 #2C49A6 #4264CD

Accessibility & contrast

On white

11.60
#1F3476 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#1F3476 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3476
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3476#FFFFFF#000000##FFFFFF
##1F34761.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043D78
Deuteranopia (green-blind)
#003575
Tritanopia (blue-blind)
#00444F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f3476;
/* rgb */ color: rgb(31, 52, 118);
/* oklch */ color: oklch(35.0% 0.116 266.9);
Tailwind
colors: {
  custom: {
    50: '#676b9e',
    500: '#1f3476',
    950: '#000000',
  },
}
SCSS
$custom: #1f3476;
$custom-light: #676b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3476",
  "rgb": {
    "r": 31,
    "g": 52,
    "b": 118
  },
  "hsl": {
    "h": 225.517,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34954,
    "c": 0.11625,
    "h": 266.9
  },
  "luminance": 0.04055
}

Semantic roles & 50–950 ramp

primary
#1F3476
secondary
#AA9247
accent
#BC46E2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #1F3476

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

Preview Lab → · Contrast checker → · Palette generator →

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