#21245D#21245D

#21245D is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.5% C 0.100 H 276.1°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#21245D
RGBrgb(33, 36, 93)
HSLhsl(237, 48%, 25%)
HSVhsv(237, 65%, 36%)
CMYKcmyk(64.5%, 61.3%, 0%, 63.5%)
CIE-LABlab(17.34, 18.28, -34.64)
CIE-LCHlch(17.34, 39.16, 297.83°)
OKLaboklab(29.47% 0.0106 -0.0995)
OKLCHoklch(29.47% 0.1 276.1)
XYZxyz(3.2332, 2.3752, 10.6419)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21245D #5D5A21
analogous
#21425D #21245D #3C215D
triadic
#21245D #5D2124 #245D21
tetradic
#21245D #5D2142 #5D5A21 #215D3C
square
#21245D #5D2142 #5D5A21 #215D3C
split-complementary
#21245D #5D3C21 #425D21
monochromatic
#080917 #111330 #21245D #31358A #4147B7

Accessibility & contrast

On white

14.24
#21245D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#21245D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21245D
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21245D#FFFFFF#000000##FFFFFF
##21245D1.0014.241.4814.24
#FFFFFF14.241.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5F
Deuteranopia (green-blind)
#00285C
Tritanopia (blue-blind)
#00323C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #21245d;
/* rgb */ color: rgb(33, 36, 93);
/* oklch */ color: oklch(29.5% 0.100 276.1);
Tailwind
colors: {
  custom: {
    50: '#635e8b',
    500: '#21245d',
    950: '#000000',
  },
}
SCSS
$custom: #21245d;
$custom-light: #635e8b;
$custom-dark: #000000;
JSON
{
  "hex": "#21245d",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 93
  },
  "hsl": {
    "h": 237,
    "s": 47.619,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29472,
    "c": 0.10003,
    "h": 276.1
  },
  "luminance": 0.02375
}

Semantic roles & 50–950 ramp

primary
#21245D
secondary
#918E49
accent
#D051D7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #21245D

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

Preview Lab → · Contrast checker → · Palette generator →

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