#1F2589#1F2589

#1F2589 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.162 H 271.3°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#1F2589
RGBrgb(31, 37, 137)
HSLhsl(237, 63%, 33%)
HSVhsv(237, 77%, 54%)
CMYKcmyk(77.4%, 73%, 0%, 46.3%)
CIE-LABlab(21.65, 33.88, -55.93)
CIE-LCHlch(21.65, 65.39, 301.20°)
OKLaboklab(33.87% 0.0038 -0.1619)
OKLCHoklch(33.87% 0.162 271.3)
XYZxyz(5.7405, 3.4200, 24.0196)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2589 #89831F
analogous
#1F5A89 #1F2589 #4E1F89
triadic
#1F2589 #891F25 #25891F
tetradic
#1F2589 #891F5A #89831F #1F894E
square
#1F2589 #891F5A #89831F #1F894E
split-complementary
#1F2589 #894E1F #5A891F
monochromatic
#080A25 #141857 #1F2589 #2A32BB #4C54D6

Accessibility & contrast

On white

12.47
#1F2589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1F2589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2589
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2589#FFFFFF#000000##FFFFFF
##1F25891.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398C
Deuteranopia (green-blind)
#002F87
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2589;
/* rgb */ color: rgb(31, 37, 137);
/* oklch */ color: oklch(33.9% 0.162 271.3);
Tailwind
colors: {
  custom: {
    50: '#6d60ac',
    500: '#1f2589',
    950: '#000000',
  },
}
SCSS
$custom: #1f2589;
$custom-light: #6d60ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2589",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 137
  },
  "hsl": {
    "h": 236.604,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33867,
    "c": 0.16192,
    "h": 271.3
  },
  "luminance": 0.03421
}

Semantic roles & 50–950 ramp

primary
#1F2589
secondary
#B9B34B
accent
#DD42E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2589

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

Preview Lab → · Contrast checker → · Palette generator →

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