#1F2387#1F2387

#1F2387 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.161 H 271.8°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#1F2387
RGBrgb(31, 35, 135)
HSLhsl(238, 63%, 33%)
HSVhsv(238, 77%, 53%)
CMYKcmyk(77%, 74.1%, 0%, 47.1%)
CIE-LABlab(20.99, 34.40, -55.77)
CIE-LCHlch(20.99, 65.53, 301.67°)
OKLaboklab(33.33% 0.0051 -0.1614)
OKLCHoklch(33.33% 0.161 271.8)
XYZxyz(5.5378, 3.2421, 23.2509)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2387 #87831F
analogous
#1F5787 #1F2387 #4F1F87
triadic
#1F2387 #871F23 #23871F
tetradic
#1F2387 #871F57 #87831F #1F874F
square
#1F2387 #871F57 #87831F #1F874F
split-complementary
#1F2387 #874F1F #57871F
monochromatic
#080923 #141655 #1F2387 #2A30B9 #4B50D6

Accessibility & contrast

On white

12.74
#1F2387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1F2387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2387
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2387#FFFFFF#000000##FFFFFF
##1F23871.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f2387;
/* rgb */ color: rgb(31, 35, 135);
/* oklch */ color: oklch(33.3% 0.161 271.8);
Tailwind
colors: {
  custom: {
    50: '#6d5fab',
    500: '#1f2387',
    950: '#000000',
  },
}
SCSS
$custom: #1f2387;
$custom-light: #6d5fab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2387",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 237.692,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33327,
    "c": 0.16149,
    "h": 271.8
  },
  "luminance": 0.03243
}

Semantic roles & 50–950 ramp

primary
#1F2387
secondary
#B8B44A
accent
#DF42E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F2387

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

Preview Lab → · Contrast checker → · Palette generator →

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