#21249F#21249F

#21249F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.3% C 0.190 H 270.9°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#21249F
RGBrgb(33, 36, 159)
HSLhsl(239, 66%, 38%)
HSVhsv(239, 79%, 62%)
CMYKcmyk(79.2%, 77.4%, 0%, 37.6%)
CIE-LABlab(23.96, 42.36, -65.70)
CIE-LCHlch(23.96, 78.17, 302.81°)
OKLaboklab(36.25% 0.0028 -0.1903)
OKLCHoklch(36.25% 0.19 270.9)
XYZxyz(7.5140, 4.0874, 33.1871)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21249F #9F9C21
analogous
#21639F #21249F #5D219F
triadic
#21249F #9F2124 #249F21
tetradic
#21249F #9F2163 #9F9C21 #219F5D
square
#21249F #9F2163 #9F9C21 #219F5D
split-complementary
#21249F #9F5D21 #639F21
monochromatic
#0C0D3A #16196C #21249F #2C2FD2 #5D60DD

Accessibility & contrast

On white

11.55
#21249F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#21249F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21249F
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21249F#FFFFFF#000000##FFFFFF
##21249F1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #21249f;
/* rgb */ color: rgb(33, 36, 159);
/* oklch */ color: oklch(36.3% 0.190 270.9);
Tailwind
colors: {
  custom: {
    50: '#7461bd',
    500: '#21249f',
    950: '#000000',
  },
}
SCSS
$custom: #21249f;
$custom-light: #7461bd;
$custom-dark: #000000;
JSON
{
  "hex": "#21249f",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 159
  },
  "hsl": {
    "h": 238.571,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36252,
    "c": 0.19028,
    "h": 270.9
  },
  "luminance": 0.04088
}

Semantic roles & 50–950 ramp

primary
#21249F
secondary
#C2BF5A
accent
#E53FE9
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #21249F

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

Preview Lab → · Contrast checker → · Palette generator →

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