#1F2488#1F2488

#1F2488 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.162 H 271.6°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#1F2488
RGBrgb(31, 36, 136)
HSLhsl(237, 63%, 33%)
HSVhsv(237, 77%, 53%)
CMYKcmyk(77.2%, 73.5%, 0%, 46.7%)
CIE-LABlab(21.32, 34.14, -55.85)
CIE-LCHlch(21.32, 65.46, 301.44°)
OKLaboklab(33.6% 0.0045 -0.1616)
OKLCHoklch(33.6% 0.162 271.6)
XYZxyz(5.6384, 3.3300, 23.6334)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2488 #88831F
analogous
#1F5888 #1F2488 #4F1F88
triadic
#1F2488 #881F24 #24881F
tetradic
#1F2488 #881F58 #88831F #1F884F
square
#1F2488 #881F58 #88831F #1F884F
split-complementary
#1F2488 #884F1F #58881F
monochromatic
#080A24 #141756 #1F2488 #2A31BA #4B52D6

Accessibility & contrast

On white

12.60
#1F2488 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1F2488 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2488
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2488#FFFFFF#000000##FFFFFF
##1F24881.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#002E86
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f2488;
/* rgb */ color: rgb(31, 36, 136);
/* oklch */ color: oklch(33.6% 0.162 271.6);
Tailwind
colors: {
  custom: {
    50: '#6d5fac',
    500: '#1f2488',
    950: '#000000',
  },
}
SCSS
$custom: #1f2488;
$custom-light: #6d5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2488",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 136
  },
  "hsl": {
    "h": 237.143,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33596,
    "c": 0.16171,
    "h": 271.6
  },
  "luminance": 0.03331
}

Semantic roles & 50–950 ramp

primary
#1F2488
secondary
#B9B34A
accent
#DE42E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2488

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

Preview Lab → · Contrast checker → · Palette generator →

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