#1F217D#1F217D

#1F217D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.150 H 273.0°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#1F217D
RGBrgb(31, 33, 125)
HSLhsl(239, 60%, 31%)
HSVhsv(239, 75%, 49%)
CMYKcmyk(75.2%, 73.6%, 0%, 51%)
CIE-LABlab(19.47, 32.04, -51.95)
CIE-LCHlch(19.47, 61.04, 301.66°)
OKLaboklab(31.92% 0.0078 -0.1503)
OKLCHoklch(31.92% 0.15 273)
XYZxyz(4.8094, 2.8592, 19.6965)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F217D #7D7B1F
analogous
#1F507D #1F217D #4C1F7D
triadic
#1F217D #7D1F21 #217D1F
tetradic
#1F217D #7D1F50 #7D7B1F #1F7D4C
square
#1F217D #7D1F50 #7D7B1F #1F7D4C
split-complementary
#1F217D #7D4C1F #507D1F
monochromatic
#07071B #13144C #1F217D #2B2EAE #4548D1

Accessibility & contrast

On white

13.36
#1F217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1F217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F217D
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F217D#FFFFFF#000000##FFFFFF
##1F217D1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f217d;
/* rgb */ color: rgb(31, 33, 125);
/* oklch */ color: oklch(31.9% 0.150 273.0);
Tailwind
colors: {
  custom: {
    50: '#6b5da4',
    500: '#1f217d',
    950: '#000000',
  },
}
SCSS
$custom: #1f217d;
$custom-light: #6b5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f217d",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 238.723,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31921,
    "c": 0.15049,
    "h": 273
  },
  "luminance": 0.0286
}

Semantic roles & 50–950 ramp

primary
#1F217D
secondary
#B0AE48
accent
#E044E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1F217D

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

Preview Lab → · Contrast checker → · Palette generator →

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