#1F287F#1F287F

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

Color values

HEX#1F287F
RGBrgb(31, 40, 127)
HSLhsl(234, 61%, 31%)
HSVhsv(234, 76%, 50%)
CMYKcmyk(75.6%, 68.5%, 0%, 50.2%)
CIE-LABlab(21.36, 28.21, -50.12)
CIE-LCHlch(21.36, 57.51, 299.37°)
OKLaboklab(33.35% 0.0032 -0.1449)
OKLCHoklch(33.35% 0.145 271.3)
XYZxyz(5.1533, 3.3407, 20.4478)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F287F #7F761F
analogous
#1F587F #1F287F #461F7F
triadic
#1F287F #7F1F28 #287F1F
tetradic
#1F287F #7F1F58 #7F761F #1F7F46
square
#1F287F #7F1F58 #7F761F #1F7F46
split-complementary
#1F287F #7F461F #587F1F
monochromatic
#07091D #13194E #1F287F #2B37B0 #4654D2

Accessibility & contrast

On white

12.59
#1F287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1F287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F287F
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F287F#FFFFFF#000000##FFFFFF
##1F287F1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f287f;
/* rgb */ color: rgb(31, 40, 127);
/* oklch */ color: oklch(33.3% 0.145 271.3);
Tailwind
colors: {
  custom: {
    50: '#6a62a5',
    500: '#1f287f',
    950: '#000000',
  },
}
SCSS
$custom: #1f287f;
$custom-light: #6a62a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f287f",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 234.375,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33348,
    "c": 0.14495,
    "h": 271.3
  },
  "luminance": 0.03341
}

Semantic roles & 50–950 ramp

primary
#1F287F
secondary
#B2A848
accent
#D544E4
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #1F287F

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

Preview Lab → · Contrast checker → · Palette generator →

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