#21249D#21249D

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

Color values

HEX#21249D
RGBrgb(33, 36, 157)
HSLhsl(239, 65%, 37%)
HSVhsv(239, 79%, 62%)
CMYKcmyk(79%, 77.1%, 0%, 38.4%)
CIE-LABlab(23.73, 41.68, -64.85)
CIE-LCHlch(23.73, 77.09, 302.73°)
OKLaboklab(36.03% 0.0032 -0.1878)
OKLCHoklch(36.03% 0.188 271)
XYZxyz(7.3418, 4.0186, 32.2805)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21249D #9D9A21
analogous
#21629D #21249D #5C219D
triadic
#21249D #9D2124 #249D21
tetradic
#21249D #9D2162 #9D9A21 #219D5C
square
#21249D #9D2162 #9D9A21 #219D5C
split-complementary
#21249D #9D5C21 #629D21
monochromatic
#0C0D38 #16186A #21249D #2C30D0 #5C5FDD

Accessibility & contrast

On white

11.64
#21249D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21249D
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21249D#FFFFFF#000000##FFFFFF
##21249D1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21249d;
/* rgb */ color: rgb(33, 36, 157);
/* oklch */ color: oklch(36.0% 0.188 271.0);
Tailwind
colors: {
  custom: {
    50: '#7361bb',
    500: '#21249d',
    950: '#000000',
  },
}
SCSS
$custom: #21249d;
$custom-light: #7361bb;
$custom-dark: #000000;
JSON
{
  "hex": "#21249d",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 157
  },
  "hsl": {
    "h": 238.548,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36026,
    "c": 0.18783,
    "h": 271
  },
  "luminance": 0.04019
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21249D

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

Preview Lab → · Contrast checker → · Palette generator →

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