#21299C#21299C

#21299C is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.7% C 0.182 H 270.4°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#21299C
RGBrgb(33, 41, 156)
HSLhsl(236, 65%, 37%)
HSVhsv(236, 79%, 61%)
CMYKcmyk(78.8%, 73.7%, 0%, 38.8%)
CIE-LABlab(24.67, 38.39, -62.70)
CIE-LCHlch(24.67, 73.52, 301.48°)
OKLaboklab(36.66% 0.0014 -0.1816)
OKLCHoklch(36.66% 0.182 270.4)
XYZxyz(7.4188, 4.3087, 31.8867)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21299C #9C9421
analogous
#21669C #21299C #57219C
triadic
#21299C #9C2129 #299C21
tetradic
#21299C #9C2166 #9C9421 #219C57
square
#21299C #9C2166 #9C9421 #219C57
split-complementary
#21299C #9C5721 #669C21
monochromatic
#0C0E37 #161C69 #21299C #2C36CF #5B63DC

Accessibility & contrast

On white

11.28
#21299C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#21299C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21299C
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21299C#FFFFFF#000000##FFFFFF
##21299C1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419F
Deuteranopia (green-blind)
#00349A
Tritanopia (blue-blind)
#004A60
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #21299c;
/* rgb */ color: rgb(33, 41, 156);
/* oklch */ color: oklch(36.7% 0.182 270.4);
Tailwind
colors: {
  custom: {
    50: '#7364ba',
    500: '#21299c',
    950: '#000000',
  },
}
SCSS
$custom: #21299c;
$custom-light: #7364ba;
$custom-dark: #000000;
JSON
{
  "hex": "#21299c",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 156
  },
  "hsl": {
    "h": 236.098,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36657,
    "c": 0.18158,
    "h": 270.4
  },
  "luminance": 0.0431
}

Semantic roles & 50–950 ramp

primary
#21299C
secondary
#C1BA58
accent
#DD40E8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090512
muted
#7B7A81

Preview Lab

Preview with #21299C

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

Preview Lab → · Contrast checker → · Palette generator →

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