#1F3571#1F3571

#1F3571 is a dark, moderate blue. Relative luminance 0.040; OKLCH L 34.8% C 0.107 H 265.9°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#1F3571
RGBrgb(31, 53, 113)
HSLhsl(224, 57%, 28%)
HSVhsv(224, 73%, 44%)
CMYKcmyk(72.6%, 53.1%, 0%, 55.7%)
CIE-LABlab(23.77, 13.63, -37.29)
CIE-LCHlch(23.77, 39.70, 290.08°)
OKLaboklab(34.77% -0.0077 -0.1071)
OKLCHoklch(34.77% 0.107 265.9)
XYZxyz(4.8178, 4.0293, 16.1434)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3571 #715B1F
analogous
#1F5E71 #1F3571 #321F71
triadic
#1F3571 #711F35 #35711F
tetradic
#1F3571 #711F5E #715B1F #1F7132
square
#1F3571 #711F5E #715B1F #1F7132
split-complementary
#1F3571 #71321F #5E711F
monochromatic
#070B18 #121E41 #1F3571 #2C4CA1 #4065CB

Accessibility & contrast

On white

11.63
#1F3571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F3571
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3571#FFFFFF#000000##FFFFFF
##1F35711.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113D73
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#00434D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f3571;
/* rgb */ color: rgb(31, 53, 113);
/* oklch */ color: oklch(34.8% 0.107 265.9);
Tailwind
colors: {
  custom: {
    50: '#666b9a',
    500: '#1f3571',
    950: '#000000',
  },
}
SCSS
$custom: #1f3571;
$custom-light: #666b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3571",
  "rgb": {
    "r": 31,
    "g": 53,
    "b": 113
  },
  "hsl": {
    "h": 223.902,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3477,
    "c": 0.10735,
    "h": 265.9
  },
  "luminance": 0.0403
}

Semantic roles & 50–950 ramp

primary
#1F3571
secondary
#A58C47
accent
#B748E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #1F3571

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

Preview Lab → · Contrast checker → · Palette generator →

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