#21299A#21299A

#21299A is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.4% C 0.179 H 270.5°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#21299A
RGBrgb(33, 41, 154)
HSLhsl(236, 65%, 37%)
HSVhsv(236, 79%, 60%)
CMYKcmyk(78.6%, 73.4%, 0%, 39.6%)
CIE-LABlab(24.45, 37.69, -61.83)
CIE-LCHlch(24.45, 72.41, 301.36°)
OKLaboklab(36.44% 0.0017 -0.179)
OKLCHoklch(36.44% 0.179 270.5)
XYZxyz(7.2509, 4.2415, 31.0021)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21299A #9A9221
analogous
#21669A #21299A #56219A
triadic
#21299A #9A2129 #299A21
tetradic
#21299A #9A2166 #9A9221 #219A56
square
#21299A #9A2166 #9A9221 #219A56
split-complementary
#21299A #9A5621 #669A21
monochromatic
#0B0E35 #161C68 #21299A #2C36CC #5A62DC

Accessibility & contrast

On white

11.36
#21299A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#21299A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21299A
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21299A#FFFFFF#000000##FFFFFF
##21299A1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409D
Deuteranopia (green-blind)
#003498
Tritanopia (blue-blind)
#00495F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #21299a;
/* rgb */ color: rgb(33, 41, 154);
/* oklch */ color: oklch(36.4% 0.179 270.5);
Tailwind
colors: {
  custom: {
    50: '#7264b9',
    500: '#21299a',
    950: '#000000',
  },
}
SCSS
$custom: #21299a;
$custom-light: #7264b9;
$custom-dark: #000000;
JSON
{
  "hex": "#21299a",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 154
  },
  "hsl": {
    "h": 236.033,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36442,
    "c": 0.17904,
    "h": 270.5
  },
  "luminance": 0.04242
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21299A

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

Preview Lab → · Contrast checker → · Palette generator →

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