#1F2987#1F2987

#1F2987 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.155 H 270.7°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#1F2987
RGBrgb(31, 41, 135)
HSLhsl(234, 63%, 33%)
HSVhsv(234, 77%, 53%)
CMYKcmyk(77%, 69.6%, 0%, 47.1%)
CIE-LABlab(22.39, 30.56, -53.46)
CIE-LCHlch(22.39, 61.58, 299.76°)
OKLaboklab(34.34% 0.0018 -0.1547)
OKLCHoklch(34.34% 0.155 270.7)
XYZxyz(5.7297, 3.6258, 23.3149)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2987 #877D1F
analogous
#1F5D87 #1F2987 #491F87
triadic
#1F2987 #871F29 #29871F
tetradic
#1F2987 #871F5D #877D1F #1F8749
square
#1F2987 #871F5D #877D1F #1F8749
split-complementary
#1F2987 #87491F #5D871F
monochromatic
#080B23 #141A55 #1F2987 #2A38B9 #4B58D6

Accessibility & contrast

On white

12.17
#1F2987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1F2987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2987
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2987#FFFFFF#000000##FFFFFF
##1F29871.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#004354
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2987;
/* rgb */ color: rgb(31, 41, 135);
/* oklch */ color: oklch(34.3% 0.155 270.7);
Tailwind
colors: {
  custom: {
    50: '#6c63ab',
    500: '#1f2987',
    950: '#000000',
  },
}
SCSS
$custom: #1f2987;
$custom-light: #6c63ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2987",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 234.231,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3434,
    "c": 0.15468,
    "h": 270.7
  },
  "luminance": 0.03626
}

Semantic roles & 50–950 ramp

primary
#1F2987
secondary
#B8AE4A
accent
#D642E6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2987

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

Preview Lab → · Contrast checker → · Palette generator →

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