#1F287D#1F287D

#1F287D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.1% C 0.142 H 271.4°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#1F287D
RGBrgb(31, 40, 125)
HSLhsl(234, 60%, 31%)
HSVhsv(234, 75%, 49%)
CMYKcmyk(75.2%, 68%, 0%, 51%)
CIE-LABlab(21.17, 27.45, -49.17)
CIE-LCHlch(21.17, 56.31, 299.18°)
OKLaboklab(33.15% 0.0034 -0.1421)
OKLCHoklch(33.15% 0.142 271.4)
XYZxyz(5.0243, 3.2890, 19.7681)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F287D #7D741F
analogous
#1F577D #1F287D #451F7D
triadic
#1F287D #7D1F28 #287D1F
tetradic
#1F287D #7D1F57 #7D741F #1F7D45
square
#1F287D #7D1F57 #7D741F #1F7D45
split-complementary
#1F287D #7D451F #577D1F
monochromatic
#07091B #13184C #1F287D #2B38AE #4553D1

Accessibility & contrast

On white

12.67
#1F287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1F287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F287D
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F287D#FFFFFF#000000##FFFFFF
##1F287D1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f287d;
/* rgb */ color: rgb(31, 40, 125);
/* oklch */ color: oklch(33.1% 0.142 271.4);
Tailwind
colors: {
  custom: {
    50: '#6a62a4',
    500: '#1f287d',
    950: '#000000',
  },
}
SCSS
$custom: #1f287d;
$custom-light: #6a62a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f287d",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 234.255,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33147,
    "c": 0.14217,
    "h": 271.4
  },
  "luminance": 0.0329
}

Semantic roles & 50–950 ramp

primary
#1F287D
secondary
#B0A648
accent
#D444E3
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1F287D

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

Preview Lab → · Contrast checker → · Palette generator →

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