#21299B#21299B

#21299B is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.180 H 270.5°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#21299B
RGBrgb(33, 41, 155)
HSLhsl(236, 65%, 37%)
HSVhsv(236, 79%, 61%)
CMYKcmyk(78.7%, 73.5%, 0%, 39.2%)
CIE-LABlab(24.56, 38.04, -62.26)
CIE-LCHlch(24.56, 72.96, 301.42°)
OKLaboklab(36.55% 0.0015 -0.1803)
OKLCHoklch(36.55% 0.18 270.5)
XYZxyz(7.3345, 4.2750, 31.4426)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21299B #9B9321
analogous
#21669B #21299B #56219B
triadic
#21299B #9B2129 #299B21
tetradic
#21299B #9B2166 #9B9321 #219B56
square
#21299B #9B2166 #9B9321 #219B56
split-complementary
#21299B #9B5621 #669B21
monochromatic
#0C0E36 #161C69 #21299B #2C36CD #5A63DC

Accessibility & contrast

On white

11.32
#21299B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21299B
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21299B#FFFFFF#000000##FFFFFF
##21299B1.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409E
Deuteranopia (green-blind)
#003499
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #21299b;
/* rgb */ color: rgb(33, 41, 155);
/* oklch */ color: oklch(36.5% 0.180 270.5);
Tailwind
colors: {
  custom: {
    50: '#7264ba',
    500: '#21299b',
    950: '#000000',
  },
}
SCSS
$custom: #21299b;
$custom-light: #7264ba;
$custom-dark: #000000;
JSON
{
  "hex": "#21299b",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 155
  },
  "hsl": {
    "h": 236.066,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.3655,
    "c": 0.18031,
    "h": 270.5
  },
  "luminance": 0.04276
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21299B

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

Preview Lab → · Contrast checker → · Palette generator →

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