#21249C#21249C

#21249C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.187 H 271.0°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#21249C
RGBrgb(33, 36, 156)
HSLhsl(239, 65%, 37%)
HSVhsv(239, 79%, 61%)
CMYKcmyk(78.8%, 76.9%, 0%, 38.8%)
CIE-LABlab(23.62, 41.34, -64.43)
CIE-LCHlch(23.62, 76.55, 302.68°)
OKLaboklab(35.91% 0.0034 -0.1866)
OKLCHoklch(35.91% 0.187 271)
XYZxyz(7.2568, 3.9846, 31.8327)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21249C #9C9921
analogous
#21619C #21249C #5C219C
triadic
#21249C #9C2124 #249C21
tetradic
#21249C #9C2161 #9C9921 #219C5C
square
#21249C #9C2161 #9C9921 #219C5C
split-complementary
#21249C #9C5C21 #619C21
monochromatic
#0C0D37 #161869 #21249C #2C30CF #5B5EDC

Accessibility & contrast

On white

11.69
#21249C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#21249C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21249C
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21249C#FFFFFF#000000##FFFFFF
##21249C1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9F
Deuteranopia (green-blind)
#00329A
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #21249c;
/* rgb */ color: rgb(33, 36, 156);
/* oklch */ color: oklch(35.9% 0.187 271.0);
Tailwind
colors: {
  custom: {
    50: '#7360ba',
    500: '#21249c',
    950: '#000000',
  },
}
SCSS
$custom: #21249c;
$custom-light: #7360ba;
$custom-dark: #000000;
JSON
{
  "hex": "#21249c",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 156
  },
  "hsl": {
    "h": 238.537,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.35913,
    "c": 0.18659,
    "h": 271
  },
  "luminance": 0.03985
}

Semantic roles & 50–950 ramp

primary
#21249C
secondary
#C1BE58
accent
#E440E8
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #21249C

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

Preview Lab → · Contrast checker → · Palette generator →

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