#21245B#21245B

#21245B is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.3% C 0.097 H 276.3°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#21245B
RGBrgb(33, 36, 91)
HSLhsl(237, 47%, 24%)
HSVhsv(237, 64%, 36%)
CMYKcmyk(63.7%, 60.4%, 0%, 64.3%)
CIE-LABlab(17.18, 17.52, -33.57)
CIE-LCHlch(17.18, 37.87, 297.56°)
OKLaboklab(29.3% 0.0106 -0.0963)
OKLCHoklch(29.3% 0.097 276.3)
XYZxyz(3.1458, 2.3402, 10.1814)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21245B #5B5821
analogous
#21415B #21245B #3B215B
triadic
#21245B #5B2124 #245B21
tetradic
#21245B #5B2141 #5B5821 #215B3B
square
#21245B #5B2141 #5B5821 #215B3B
split-complementary
#21245B #5B3B21 #415B21
monochromatic
#080916 #11122E #21245B #313688 #4248B5

Accessibility & contrast

On white

14.31
#21245B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#21245B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21245B
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21245B#FFFFFF#000000##FFFFFF
##21245B1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5D
Deuteranopia (green-blind)
#00285A
Tritanopia (blue-blind)
#00313B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #21245b;
/* rgb */ color: rgb(33, 36, 91);
/* oklch */ color: oklch(29.3% 0.097 276.3);
Tailwind
colors: {
  custom: {
    50: '#635e8a',
    500: '#21245b',
    950: '#000000',
  },
}
SCSS
$custom: #21245b;
$custom-light: #635e8a;
$custom-dark: #000000;
JSON
{
  "hex": "#21245b",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 91
  },
  "hsl": {
    "h": 236.897,
    "s": 46.774,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29298,
    "c": 0.09691,
    "h": 276.3
  },
  "luminance": 0.0234
}

Semantic roles & 50–950 ramp

primary
#21245B
secondary
#8F8C49
accent
#D051D6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #21245B

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

Preview Lab → · Contrast checker → · Palette generator →

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