#21247B#21247B

#21247B is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.144 H 273.5°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#21247B
RGBrgb(33, 36, 123)
HSLhsl(238, 58%, 31%)
HSVhsv(238, 73%, 48%)
CMYKcmyk(73.2%, 70.7%, 0%, 51.8%)
CIE-LABlab(20.10, 29.61, -49.64)
CIE-LCHlch(20.10, 57.80, 300.82°)
OKLaboklab(32.35% 0.0087 -0.1435)
OKLCHoklch(32.35% 0.144 273.5)
XYZxyz(4.8320, 3.0147, 19.0623)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21247B #7B7821
analogous
#21517B #21247B #4B217B
triadic
#21247B #7B2124 #247B21
tetradic
#21247B #7B2151 #7B7821 #217B4B
square
#21247B #7B2151 #7B7821 #217B4B
split-complementary
#21247B #7B4B21 #517B21
monochromatic
#07081A #14164B #21247B #2E32AB #484DCE

Accessibility & contrast

On white

13.10
#21247B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#21247B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21247B
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21247B#FFFFFF#000000##FFFFFF
##21247B1.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#002C79
Tritanopia (blue-blind)
#003C4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #21247b;
/* rgb */ color: rgb(33, 36, 123);
/* oklch */ color: oklch(32.3% 0.144 273.5);
Tailwind
colors: {
  custom: {
    50: '#6b5fa2',
    500: '#21247b',
    950: '#000000',
  },
}
SCSS
$custom: #21247b;
$custom-light: #6b5fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#21247b",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 123
  },
  "hsl": {
    "h": 238,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32348,
    "c": 0.14373,
    "h": 273.5
  },
  "luminance": 0.03015
}

Semantic roles & 50–950 ramp

primary
#21247B
secondary
#AEAB4A
accent
#DC47E1
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #21247B

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

Preview Lab → · Contrast checker → · Palette generator →

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