#21247A#21247A

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

Color values

HEX#21247A
RGBrgb(33, 36, 122)
HSLhsl(238, 57%, 30%)
HSVhsv(238, 73%, 48%)
CMYKcmyk(73%, 70.5%, 0%, 52.2%)
CIE-LABlab(20.00, 29.24, -49.16)
CIE-LCHlch(20.00, 57.20, 300.74°)
OKLaboklab(32.25% 0.0088 -0.1421)
OKLCHoklch(32.25% 0.142 273.5)
XYZxyz(4.7698, 2.9898, 18.7343)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21247A #7A7721
analogous
#21507A #21247A #4B217A
triadic
#21247A #7A2124 #247A21
tetradic
#21247A #7A2150 #7A7721 #217A4B
square
#21247A #7A2150 #7A7721 #217A4B
split-complementary
#21247A #7A4B21 #507A21
monochromatic
#07081A #14164A #21247A #2E32AA #484CCD

Accessibility & contrast

On white

13.14
#21247A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21247A
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21247A#FFFFFF#000000##FFFFFF
##21247A1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#002C78
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #21247a;
/* rgb */ color: rgb(33, 36, 122);
/* oklch */ color: oklch(32.2% 0.142 273.5);
Tailwind
colors: {
  custom: {
    50: '#6a5fa1',
    500: '#21247a',
    950: '#000000',
  },
}
SCSS
$custom: #21247a;
$custom-light: #6a5fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#21247a",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 122
  },
  "hsl": {
    "h": 237.978,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32245,
    "c": 0.14236,
    "h": 273.5
  },
  "luminance": 0.0299
}

Semantic roles & 50–950 ramp

primary
#21247A
secondary
#ADAA4A
accent
#DB47E1
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #21247A

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

Preview Lab → · Contrast checker → · Palette generator →

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