#1F2471#1F2471

#1F2471 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.2% C 0.130 H 273.2°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#1F2471
RGBrgb(31, 36, 113)
HSLhsl(236, 57%, 28%)
HSVhsv(236, 73%, 44%)
CMYKcmyk(72.6%, 68.1%, 0%, 55.7%)
CIE-LABlab(18.99, 25.60, -45.05)
CIE-LCHlch(18.99, 51.82, 299.61°)
OKLaboklab(31.21% 0.0073 -0.1301)
OKLCHoklch(31.21% 0.13 273.2)
XYZxyz(4.1756, 2.7449, 15.9293)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2471 #716C1F
analogous
#1F4D71 #1F2471 #431F71
triadic
#1F2471 #711F24 #24711F
tetradic
#1F2471 #711F4D #716C1F #1F7143
square
#1F2471 #711F4D #716C1F #1F7143
split-complementary
#1F2471 #71431F #4D711F
monochromatic
#070818 #121541 #1F2471 #2C33A1 #4048CB

Accessibility & contrast

On white

13.56
#1F2471 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1F2471 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2471
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2471#FFFFFF#000000##FFFFFF
##1F24711.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#003847
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f2471;
/* rgb */ color: rgb(31, 36, 113);
/* oklch */ color: oklch(31.2% 0.130 273.2);
Tailwind
colors: {
  custom: {
    50: '#675f9b',
    500: '#1f2471',
    950: '#000000',
  },
}
SCSS
$custom: #1f2471;
$custom-light: #675f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2471",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 113
  },
  "hsl": {
    "h": 236.341,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31206,
    "c": 0.13031,
    "h": 273.2
  },
  "luminance": 0.02745
}

Semantic roles & 50–950 ramp

primary
#1F2471
secondary
#A59F47
accent
#D748E0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F2471

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

Preview Lab → · Contrast checker → · Palette generator →

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