#1D216C#1D216C

#1D216C is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.0% C 0.128 H 273.4°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#1D216C
RGBrgb(29, 33, 108)
HSLhsl(237, 58%, 27%)
HSVhsv(237, 73%, 42%)
CMYKcmyk(73.1%, 69.4%, 0%, 57.6%)
CIE-LABlab(17.61, 25.46, -44.09)
CIE-LCHlch(17.61, 50.91, 300.01°)
OKLaboklab(30.01% 0.0075 -0.1273)
OKLCHoklch(30.01% 0.128 273.4)
XYZxyz(3.7564, 2.4313, 14.4558)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D216C #6C681D
analogous
#1D496C #1D216C #411D6C
triadic
#1D216C #6C1D21 #216C1D
tetradic
#1D216C #6C1D49 #6C681D #1D6C41
square
#1D216C #6C1D49 #6C681D #1D6C41
split-complementary
#1D216C #6C411D #496C1D
monochromatic
#060718 #10123C #1D216C #2A309C #3941CA

Accessibility & contrast

On white

14.13
#1D216C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#1D216C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D216C
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D216C#FFFFFF#000000##FFFFFF
##1D216C1.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6E
Deuteranopia (green-blind)
#00286B
Tritanopia (blue-blind)
#003543
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1d216c;
/* rgb */ color: rgb(29, 33, 108);
/* oklch */ color: oklch(30.0% 0.128 273.4);
Tailwind
colors: {
  custom: {
    50: '#655c97',
    500: '#1d216c',
    950: '#000000',
  },
}
SCSS
$custom: #1d216c;
$custom-light: #655c97;
$custom-dark: #000000;
JSON
{
  "hex": "#1d216c",
  "rgb": {
    "r": 29,
    "g": 33,
    "b": 108
  },
  "hsl": {
    "h": 236.962,
    "s": 57.664,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30011,
    "c": 0.12757,
    "h": 273.4
  },
  "luminance": 0.02432
}

Semantic roles & 50–950 ramp

primary
#1D216C
secondary
#A19C44
accent
#D947E1
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #1D216C

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

Preview Lab → · Contrast checker → · Palette generator →

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