#21299E#21299E

#21299E is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.9% C 0.184 H 270.3°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#21299E
RGBrgb(33, 41, 158)
HSLhsl(236, 65%, 37%)
HSVhsv(236, 79%, 62%)
CMYKcmyk(79.1%, 74.1%, 0%, 38%)
CIE-LABlab(24.88, 39.10, -63.57)
CIE-LCHlch(24.88, 74.63, 301.60°)
OKLaboklab(36.87% 0.0011 -0.1841)
OKLCHoklch(36.87% 0.184 270.3)
XYZxyz(7.5896, 4.3770, 32.7860)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21299E #9E9621
analogous
#21689E #21299E #58219E
triadic
#21299E #9E2129 #299E21
tetradic
#21299E #9E2168 #9E9621 #219E58
square
#21299E #9E2168 #9E9621 #219E58
split-complementary
#21299E #9E5821 #689E21
monochromatic
#0C0F39 #161C6B #21299E #2C36D1 #5C65DD

Accessibility & contrast

On white

11.20
#21299E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#21299E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21299E
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21299E#FFFFFF#000000##FFFFFF
##21299E1.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#00359C
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #21299e;
/* rgb */ color: rgb(33, 41, 158);
/* oklch */ color: oklch(36.9% 0.184 270.3);
Tailwind
colors: {
  custom: {
    50: '#7364bc',
    500: '#21299e',
    950: '#000000',
  },
}
SCSS
$custom: #21299e;
$custom-light: #7364bc;
$custom-dark: #000000;
JSON
{
  "hex": "#21299e",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 158
  },
  "hsl": {
    "h": 236.16,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36874,
    "c": 0.1841,
    "h": 270.3
  },
  "luminance": 0.04378
}

Semantic roles & 50–950 ramp

primary
#21299E
secondary
#C1BB59
accent
#DE3FE8
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #21299E

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

Preview Lab → · Contrast checker → · Palette generator →

#21299E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva