#1F2571#1F2571

#1F2571 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.4% C 0.129 H 272.9°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#1F2571
RGBrgb(31, 37, 113)
HSLhsl(236, 57%, 28%)
HSVhsv(236, 73%, 44%)
CMYKcmyk(72.6%, 67.3%, 0%, 55.7%)
CIE-LABlab(19.25, 24.91, -44.63)
CIE-LCHlch(19.25, 51.11, 299.17°)
OKLaboklab(31.4% 0.0065 -0.1289)
OKLCHoklch(31.4% 0.129 272.9)
XYZxyz(4.2063, 2.8063, 15.9396)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2571 #716B1F
analogous
#1F4E71 #1F2571 #421F71
triadic
#1F2571 #711F25 #25711F
tetradic
#1F2571 #711F4E #716B1F #1F7142
square
#1F2571 #711F4E #716B1F #1F7142
split-complementary
#1F2571 #71421F #4E711F
monochromatic
#070818 #121541 #1F2571 #2C35A1 #404ACB

Accessibility & contrast

On white

13.45
#1F2571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1F2571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2571
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2571#FFFFFF#000000##FFFFFF
##1F25711.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#003947
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f2571;
/* rgb */ color: rgb(31, 37, 113);
/* oklch */ color: oklch(31.4% 0.129 272.9);
Tailwind
colors: {
  custom: {
    50: '#675f9b',
    500: '#1f2571',
    950: '#000000',
  },
}
SCSS
$custom: #1f2571;
$custom-light: #675f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2571",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 113
  },
  "hsl": {
    "h": 235.61,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31396,
    "c": 0.12902,
    "h": 272.9
  },
  "luminance": 0.02807
}

Semantic roles & 50–950 ramp

primary
#1F2571
secondary
#A59E47
accent
#D548E0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F2571

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

Preview Lab → · Contrast checker → · Palette generator →

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