#1D218C#1D218C

#1D218C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.171 H 271.0°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#1D218C
RGBrgb(29, 33, 140)
HSLhsl(238, 66%, 33%)
HSVhsv(238, 79%, 55%)
CMYKcmyk(79.3%, 76.4%, 0%, 45.1%)
CIE-LABlab(20.99, 37.23, -58.90)
CIE-LCHlch(20.99, 69.68, 302.29°)
OKLaboklab(33.46% 0.0029 -0.1706)
OKLCHoklch(33.46% 0.171 271)
XYZxyz(5.7826, 3.2417, 25.1268)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D218C #8C881D
analogous
#1D588C #1D218C #501D8C
triadic
#1D218C #8C1D21 #218C1D
tetradic
#1D218C #8C1D58 #8C881D #1D8C50
square
#1D218C #8C1D58 #8C881D #1D8C50
split-complementary
#1D218C #8C501D #588C1D
monochromatic
#080927 #121559 #1D218C #282DBF #4A4FD9

Accessibility & contrast

On white

12.74
#1D218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1D218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D218C
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D218C#FFFFFF#000000##FFFFFF
##1D218C1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#002D8A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1d218c;
/* rgb */ color: rgb(29, 33, 140);
/* oklch */ color: oklch(33.5% 0.171 271.0);
Tailwind
colors: {
  custom: {
    50: '#6e5eaf',
    500: '#1d218c',
    950: '#000000',
  },
}
SCSS
$custom: #1d218c;
$custom-light: #6e5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#1d218c",
  "rgb": {
    "r": 29,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 237.838,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33458,
    "c": 0.17059,
    "h": 271
  },
  "luminance": 0.03242
}

Semantic roles & 50–950 ramp

primary
#1D218C
secondary
#BCB849
accent
#E33FE9
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F

Preview Lab

Preview with #1D218C

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

Preview Lab → · Contrast checker → · Palette generator →

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