#1F287E#1F287E

#1F287E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.144 H 271.3°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#1F287E
RGBrgb(31, 40, 126)
HSLhsl(234, 61%, 31%)
HSVhsv(234, 75%, 49%)
CMYKcmyk(75.4%, 68.3%, 0%, 50.6%)
CIE-LABlab(21.26, 27.83, -49.64)
CIE-LCHlch(21.26, 56.91, 299.28°)
OKLaboklab(33.25% 0.0033 -0.1435)
OKLCHoklch(33.25% 0.144 271.3)
XYZxyz(5.0885, 3.3147, 20.1063)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F287E #7E751F
analogous
#1F577E #1F287E #451F7E
triadic
#1F287E #7E1F28 #287E1F
tetradic
#1F287E #7E1F57 #7E751F #1F7E45
square
#1F287E #7E1F57 #7E751F #1F7E45
split-complementary
#1F287E #7E451F #577E1F
monochromatic
#07091C #13184D #1F287E #2B38AF #4653D1

Accessibility & contrast

On white

12.63
#1F287E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F287E
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F287E#FFFFFF#000000##FFFFFF
##1F287E1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f287e;
/* rgb */ color: rgb(31, 40, 126);
/* oklch */ color: oklch(33.2% 0.144 271.3);
Tailwind
colors: {
  custom: {
    50: '#6a62a4',
    500: '#1f287e',
    950: '#000000',
  },
}
SCSS
$custom: #1f287e;
$custom-light: #6a62a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f287e",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 126
  },
  "hsl": {
    "h": 234.316,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33247,
    "c": 0.14357,
    "h": 271.3
  },
  "luminance": 0.03315
}

Semantic roles & 50–950 ramp

primary
#1F287E
secondary
#B1A748
accent
#D544E4
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1F287E

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

Preview Lab → · Contrast checker → · Palette generator →

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