#1D217A#1D217A

#1D217A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.147 H 272.3°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#1D217A
RGBrgb(29, 33, 122)
HSLhsl(237, 62%, 30%)
HSVhsv(237, 76%, 48%)
CMYKcmyk(76.2%, 73%, 0%, 52.2%)
CIE-LABlab(19.03, 30.73, -50.78)
CIE-LCHlch(19.03, 59.35, 301.18°)
OKLaboklab(31.47% 0.0058 -0.1469)
OKLCHoklch(31.47% 0.147 272.3)
XYZxyz(4.5622, 2.7536, 18.6996)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D217A #7A761D
analogous
#1D507A #1D217A #471D7A
triadic
#1D217A #7A1D21 #217A1D
tetradic
#1D217A #7A1D50 #7A761D #1D7A47
square
#1D217A #7A1D50 #7A761D #1D7A47
split-complementary
#1D217A #7A471D #507A1D
monochromatic
#060719 #111449 #1D217A #292EAB #4046D2

Accessibility & contrast

On white

13.54
#1D217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1D217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D217A
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D217A#FFFFFF#000000##FFFFFF
##1D217A1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1d217a;
/* rgb */ color: rgb(29, 33, 122);
/* oklch */ color: oklch(31.5% 0.147 272.3);
Tailwind
colors: {
  custom: {
    50: '#695da1',
    500: '#1d217a',
    950: '#000000',
  },
}
SCSS
$custom: #1d217a;
$custom-light: #695da1;
$custom-dark: #000000;
JSON
{
  "hex": "#1d217a",
  "rgb": {
    "r": 29,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 237.419,
    "s": 61.589,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31474,
    "c": 0.14702,
    "h": 272.3
  },
  "luminance": 0.02754
}

Semantic roles & 50–950 ramp

primary
#1D217A
secondary
#AEA945
accent
#DE43E5
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1D217A

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

Preview Lab → · Contrast checker → · Palette generator →

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