#1D217F#1D217F

#1D217F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.154 H 271.9°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#1D217F
RGBrgb(29, 33, 127)
HSLhsl(238, 63%, 31%)
HSVhsv(238, 77%, 50%)
CMYKcmyk(77.2%, 74%, 0%, 50.2%)
CIE-LABlab(19.56, 32.56, -53.08)
CIE-LCHlch(19.56, 62.27, 301.53°)
OKLaboklab(32.02% 0.0051 -0.1536)
OKLCHoklch(32.02% 0.154 271.9)
XYZxyz(4.8800, 2.8807, 20.3734)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D217F #7F7B1D
analogous
#1D527F #1D217F #4A1D7F
triadic
#1D217F #7F1D21 #217F1D
tetradic
#1D217F #7F1D52 #7F7B1D #1D7F4A
square
#1D217F #7F1D52 #7F7B1D #1D7F4A
split-complementary
#1D217F #7F4A1D #527F1D
monochromatic
#06071B #12144D #1D217F #282EB1 #4248D4

Accessibility & contrast

On white

13.32
#1D217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1D217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D217F
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D217F#FFFFFF#000000##FFFFFF
##1D217F1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1d217f;
/* rgb */ color: rgb(29, 33, 127);
/* oklch */ color: oklch(32.0% 0.154 271.9);
Tailwind
colors: {
  custom: {
    50: '#6a5da5',
    500: '#1d217f',
    950: '#000000',
  },
}
SCSS
$custom: #1d217f;
$custom-light: #6a5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d217f",
  "rgb": {
    "r": 29,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 237.551,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32015,
    "c": 0.1537,
    "h": 271.9
  },
  "luminance": 0.02881
}

Semantic roles & 50–950 ramp

primary
#1D217F
secondary
#B2AE45
accent
#DF42E6
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1D217F

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

Preview Lab → · Contrast checker → · Palette generator →

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