#21248E#21248E

#21248E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.169 H 272.0°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#21248E
RGBrgb(33, 36, 142)
HSLhsl(238, 62%, 34%)
HSVhsv(238, 77%, 56%)
CMYKcmyk(76.8%, 74.6%, 0%, 44.3%)
CIE-LABlab(22.08, 36.48, -58.34)
CIE-LCHlch(22.08, 68.80, 302.02°)
OKLaboklab(34.36% 0.0059 -0.1688)
OKLCHoklch(34.36% 0.169 272)
XYZxyz(6.1389, 3.5374, 25.9452)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21248E #8E8B21
analogous
#215B8E #21248E #55218E
triadic
#21248E #8E2124 #248E21
tetradic
#21248E #8E215B #8E8B21 #218E55
square
#21248E #8E215B #8E8B21 #218E55
split-complementary
#21248E #8E5521 #5B8E21
monochromatic
#0A0B2B #15175C #21248E #2D31C0 #5256D7

Accessibility & contrast

On white

12.30
#21248E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#21248E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21248E
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21248E#FFFFFF#000000##FFFFFF
##21248E1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #21248e;
/* rgb */ color: rgb(33, 36, 142);
/* oklch */ color: oklch(34.4% 0.169 272.0);
Tailwind
colors: {
  custom: {
    50: '#6f60b0',
    500: '#21248e',
    950: '#000000',
  },
}
SCSS
$custom: #21248e;
$custom-light: #6f60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#21248e",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 238.349,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34362,
    "c": 0.16895,
    "h": 272
  },
  "luminance": 0.03538
}

Semantic roles & 50–950 ramp

primary
#21248E
secondary
#BAB850
accent
#E142E5
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #21248E

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

Preview Lab → · Contrast checker → · Palette generator →

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