#1F287B#1F287B

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

Color values

HEX#1F287B
RGBrgb(31, 40, 123)
HSLhsl(234, 60%, 30%)
HSVhsv(234, 75%, 48%)
CMYKcmyk(74.8%, 67.5%, 0%, 51.8%)
CIE-LABlab(20.97, 26.69, -48.21)
CIE-LCHlch(20.97, 55.11, 298.97°)
OKLaboklab(32.95% 0.0035 -0.1393)
OKLCHoklch(32.95% 0.139 271.4)
XYZxyz(4.8978, 3.2385, 19.1020)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F287B #7B721F
analogous
#1F567B #1F287B #441F7B
triadic
#1F287B #7B1F28 #287B1F
tetradic
#1F287B #7B1F56 #7B721F #1F7B44
square
#1F287B #7B1F56 #7B721F #1F7B44
split-complementary
#1F287B #7B441F #567B1F
monochromatic
#060819 #13184A #1F287B #2B38AC #4452D0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F287B#FFFFFF#000000##FFFFFF
##1F287B1.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)
#00377E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f287b;
/* rgb */ color: rgb(31, 40, 123);
/* oklch */ color: oklch(32.9% 0.139 271.4);
Tailwind
colors: {
  custom: {
    50: '#6962a2',
    500: '#1f287b',
    950: '#000000',
  },
}
SCSS
$custom: #1f287b;
$custom-light: #6962a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f287b",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 123
  },
  "hsl": {
    "h": 234.13,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32949,
    "c": 0.13937,
    "h": 271.4
  },
  "luminance": 0.03239
}

Semantic roles & 50–950 ramp

primary
#1F287B
secondary
#AEA448
accent
#D345E3
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1F287B

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

Preview Lab → · Contrast checker → · Palette generator →

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