#1F287A#1F287A

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

Color values

HEX#1F287A
RGBrgb(31, 40, 122)
HSLhsl(234, 59%, 30%)
HSVhsv(234, 75%, 48%)
CMYKcmyk(74.6%, 67.2%, 0%, 52.2%)
CIE-LABlab(20.88, 26.31, -47.73)
CIE-LCHlch(20.88, 54.50, 298.86°)
OKLaboklab(32.85% 0.0036 -0.1379)
OKLCHoklch(32.85% 0.138 271.5)
XYZxyz(4.8355, 3.2135, 18.7740)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F287A #7A711F
analogous
#1F557A #1F287A #441F7A
triadic
#1F287A #7A1F28 #287A1F
tetradic
#1F287A #7A1F55 #7A711F #1F7A44
square
#1F287A #7A1F55 #7A711F #1F7A44
split-complementary
#1F287A #7A441F #557A1F
monochromatic
#060818 #131849 #1F287A #2B38AB #4452CF

Accessibility & contrast

On white

12.78
#1F287A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1F287A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F287A
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F287A#FFFFFF#000000##FFFFFF
##1F287A1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f287a;
/* rgb */ color: rgb(31, 40, 122);
/* oklch */ color: oklch(32.9% 0.138 271.5);
Tailwind
colors: {
  custom: {
    50: '#6962a1',
    500: '#1f287a',
    950: '#000000',
  },
}
SCSS
$custom: #1f287a;
$custom-light: #6962a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f287a",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 122
  },
  "hsl": {
    "h": 234.066,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.3285,
    "c": 0.13798,
    "h": 271.5
  },
  "luminance": 0.03214
}

Semantic roles & 50–950 ramp

primary
#1F287A
secondary
#ADA347
accent
#D345E3
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1F287A

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

Preview Lab → · Contrast checker → · Palette generator →

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