#21248A#21248A

#21248A is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.164 H 272.3°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#21248A
RGBrgb(33, 36, 138)
HSLhsl(238, 61%, 34%)
HSVhsv(238, 76%, 54%)
CMYKcmyk(76.1%, 73.9%, 0%, 45.9%)
CIE-LABlab(21.65, 35.06, -56.55)
CIE-LCHlch(21.65, 66.54, 301.79°)
OKLaboklab(33.93% 0.0065 -0.1636)
OKLCHoklch(33.93% 0.164 272.3)
XYZxyz(5.8440, 3.4195, 24.3919)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21248A #8A8721
analogous
#21588A #21248A #52218A
triadic
#21248A #8A2124 #248A21
tetradic
#21248A #8A2158 #8A8721 #218A52
square
#21248A #8A2158 #8A8721 #218A52
split-complementary
#21248A #8A5221 #588A21
monochromatic
#090A27 #151759 #21248A #2D31BB #5054D5

Accessibility & contrast

On white

12.47
#21248A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#21248A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21248A
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21248A#FFFFFF#000000##FFFFFF
##21248A1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#002F88
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #21248a;
/* rgb */ color: rgb(33, 36, 138);
/* oklch */ color: oklch(33.9% 0.164 272.3);
Tailwind
colors: {
  custom: {
    50: '#6e60ad',
    500: '#21248a',
    950: '#000000',
  },
}
SCSS
$custom: #21248a;
$custom-light: #6e60ad;
$custom-dark: #000000;
JSON
{
  "hex": "#21248a",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 138
  },
  "hsl": {
    "h": 238.286,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33929,
    "c": 0.16378,
    "h": 272.3
  },
  "luminance": 0.0342
}

Semantic roles & 50–950 ramp

primary
#21248A
secondary
#B9B54E
accent
#E043E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #21248A

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

Preview Lab → · Contrast checker → · Palette generator →

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