#1F2587#1F2587

#1F2587 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.159 H 271.5°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#1F2587
RGBrgb(31, 37, 135)
HSLhsl(237, 63%, 33%)
HSVhsv(237, 77%, 53%)
CMYKcmyk(77%, 72.6%, 0%, 47.1%)
CIE-LABlab(21.44, 33.15, -55.02)
CIE-LCHlch(21.44, 64.23, 301.07°)
OKLaboklab(33.65% 0.0041 -0.1592)
OKLCHoklch(33.65% 0.159 271.5)
XYZxyz(5.5983, 3.3631, 23.2711)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2587 #87811F
analogous
#1F5987 #1F2587 #4D1F87
triadic
#1F2587 #871F25 #25871F
tetradic
#1F2587 #871F59 #87811F #1F874D
square
#1F2587 #871F59 #87811F #1F874D
split-complementary
#1F2587 #874D1F #59871F
monochromatic
#080A23 #141755 #1F2587 #2A33B9 #4B53D6

Accessibility & contrast

On white

12.55
#1F2587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2587
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2587#FFFFFF#000000##FFFFFF
##1F25871.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2587;
/* rgb */ color: rgb(31, 37, 135);
/* oklch */ color: oklch(33.7% 0.159 271.5);
Tailwind
colors: {
  custom: {
    50: '#6d60ab',
    500: '#1f2587',
    950: '#000000',
  },
}
SCSS
$custom: #1f2587;
$custom-light: #6d60ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2587",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 236.538,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33653,
    "c": 0.15928,
    "h": 271.5
  },
  "luminance": 0.03364
}

Semantic roles & 50–950 ramp

primary
#1F2587
secondary
#B8B24A
accent
#DC42E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2587

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

Preview Lab → · Contrast checker → · Palette generator →

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