#21247D#21247D

#21247D is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.146 H 273.3°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#21247D
RGBrgb(33, 36, 125)
HSLhsl(238, 58%, 31%)
HSVhsv(238, 74%, 49%)
CMYKcmyk(73.6%, 71.2%, 0%, 51%)
CIE-LABlab(20.30, 30.35, -50.58)
CIE-LCHlch(20.30, 58.99, 300.96°)
OKLaboklab(32.55% 0.0084 -0.1462)
OKLCHoklch(32.55% 0.146 273.3)
XYZxyz(4.9585, 3.0653, 19.7284)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21247D #7D7A21
analogous
#21527D #21247D #4C217D
triadic
#21247D #7D2124 #247D21
tetradic
#21247D #7D2152 #7D7A21 #217D4C
square
#21247D #7D2152 #7D7A21 #217D4C
split-complementary
#21247D #7D4C21 #527D21
monochromatic
#07081C #14164D #21247D #2E32AD #494ECF

Accessibility & contrast

On white

13.02
#21247D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#21247D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21247D
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21247D#FFFFFF#000000##FFFFFF
##21247D1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #21247d;
/* rgb */ color: rgb(33, 36, 125);
/* oklch */ color: oklch(32.6% 0.146 273.3);
Tailwind
colors: {
  custom: {
    50: '#6b5fa4',
    500: '#21247d',
    950: '#000000',
  },
}
SCSS
$custom: #21247d;
$custom-light: #6b5fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#21247d",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 125
  },
  "hsl": {
    "h": 238.043,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32554,
    "c": 0.14646,
    "h": 273.3
  },
  "luminance": 0.03066
}

Semantic roles & 50–950 ramp

primary
#21247D
secondary
#B0AC4A
accent
#DC46E1
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #21247D

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

Preview Lab → · Contrast checker → · Palette generator →

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