#21247E#21247E

#21247E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.148 H 273.2°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#21247E
RGBrgb(33, 36, 126)
HSLhsl(238, 58%, 31%)
HSVhsv(238, 74%, 49%)
CMYKcmyk(73.8%, 71.4%, 0%, 50.6%)
CIE-LABlab(20.40, 30.72, -51.05)
CIE-LCHlch(20.40, 59.58, 301.03°)
OKLaboklab(32.66% 0.0083 -0.1476)
OKLCHoklch(32.66% 0.148 273.2)
XYZxyz(5.0227, 3.0909, 20.0665)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21247E #7E7B21
analogous
#21527E #21247E #4C217E
triadic
#21247E #7E2124 #247E21
tetradic
#21247E #7E2152 #7E7B21 #217E4C
square
#21247E #7E2152 #7E7B21 #217E4C
split-complementary
#21247E #7E4C21 #527E21
monochromatic
#08081D #14164E #21247E #2E32AE #4A4ED0

Accessibility & contrast

On white

12.98
#21247E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#21247E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21247E
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21247E#FFFFFF#000000##FFFFFF
##21247E1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #21247e;
/* rgb */ color: rgb(33, 36, 126);
/* oklch */ color: oklch(32.7% 0.148 273.2);
Tailwind
colors: {
  custom: {
    50: '#6b5fa4',
    500: '#21247e',
    950: '#000000',
  },
}
SCSS
$custom: #21247e;
$custom-light: #6b5fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#21247e",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 126
  },
  "hsl": {
    "h": 238.065,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32658,
    "c": 0.14782,
    "h": 273.2
  },
  "luminance": 0.03091
}

Semantic roles & 50–950 ramp

primary
#21247E
secondary
#B1AD4A
accent
#DD46E2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #21247E

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

Preview Lab → · Contrast checker → · Palette generator →

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