#21247F#21247F

#21247F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.149 H 273.1°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#21247F
RGBrgb(33, 36, 127)
HSLhsl(238, 59%, 31%)
HSVhsv(238, 74%, 50%)
CMYKcmyk(74%, 71.7%, 0%, 50.2%)
CIE-LABlab(20.51, 31.08, -51.52)
CIE-LCHlch(20.51, 60.17, 301.10°)
OKLaboklab(32.76% 0.0081 -0.149)
OKLCHoklch(32.76% 0.149 273.1)
XYZxyz(5.0876, 3.1169, 20.4081)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21247F #7F7C21
analogous
#21537F #21247F #4D217F
triadic
#21247F #7F2124 #247F21
tetradic
#21247F #7F2153 #7F7C21 #217F4D
square
#21247F #7F2153 #7F7C21 #217F4D
split-complementary
#21247F #7F4D21 #537F21
monochromatic
#08081E #14164E #21247F #2E32B0 #4A4FD0

Accessibility & contrast

On white

12.94
#21247F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21247F
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21247F#FFFFFF#000000##FFFFFF
##21247F1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21247f;
/* rgb */ color: rgb(33, 36, 127);
/* oklch */ color: oklch(32.8% 0.149 273.1);
Tailwind
colors: {
  custom: {
    50: '#6c5fa5',
    500: '#21247f',
    950: '#000000',
  },
}
SCSS
$custom: #21247f;
$custom-light: #6c5fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#21247f",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 127
  },
  "hsl": {
    "h": 238.085,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32762,
    "c": 0.14918,
    "h": 273.1
  },
  "luminance": 0.03117
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21247F

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

Preview Lab → · Contrast checker → · Palette generator →

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