#1D21B3#1D21B3

#1D21B3 is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.0% C 0.218 H 268.9°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#1D21B3
RGBrgb(29, 33, 179)
HSLhsl(238, 72%, 41%)
HSVhsv(238, 84%, 70%)
CMYKcmyk(83.8%, 81.6%, 0%, 29.8%)
CIE-LABlab(25.57, 50.26, -75.11)
CIE-LCHlch(25.57, 90.37, 303.79°)
OKLaboklab(38.01% -0.0043 -0.2175)
OKLCHoklch(38.01% 0.218 268.9)
XYZxyz(9.1845, 4.6025, 43.0434)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D21B3 #B3AF1D
analogous
#1D6CB3 #1D21B3 #641DB3
triadic
#1D21B3 #B31D21 #21B31D
tetradic
#1D21B3 #B31D6C #B3AF1D #1DB364
square
#1D21B3 #B31D6C #B3AF1D #1DB364
split-complementary
#1D21B3 #B3641D #6CB31D
monochromatic
#0C0E4A #14177E #1D21B3 #3034DD #6468E6

Accessibility & contrast

On white

10.93
#1D21B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#1D21B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D21B3
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D21B3#FFFFFF#000000##FFFFFF
##1D21B31.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B7
Deuteranopia (green-blind)
#0035B1
Tritanopia (blue-blind)
#00506B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1d21b3;
/* rgb */ color: rgb(29, 33, 179);
/* oklch */ color: oklch(38.0% 0.218 268.9);
Tailwind
colors: {
  custom: {
    50: '#7860cb',
    500: '#1d21b3',
    950: '#000000',
  },
}
SCSS
$custom: #1d21b3;
$custom-light: #7860cb;
$custom-dark: #000000;
JSON
{
  "hex": "#1d21b3",
  "rgb": {
    "r": 29,
    "g": 33,
    "b": 179
  },
  "hsl": {
    "h": 238.4,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.3801,
    "c": 0.21757,
    "h": 268.9
  },
  "luminance": 0.04604
}

Semantic roles & 50–950 ramp

primary
#1D21B3
secondary
#CBC861
accent
#EA39EF
background
#F8F5FC
surface
#EFEAF9
border
#CAC6D2
text
#0B0514
muted
#7C7982

Preview Lab

Preview with #1D21B3

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

Preview Lab → · Contrast checker → · Palette generator →

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