#21238E#21238E

#21238E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.170 H 272.1°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#21238E
RGBrgb(33, 35, 142)
HSLhsl(239, 62%, 34%)
HSVhsv(239, 77%, 56%)
CMYKcmyk(76.8%, 75.4%, 0%, 44.3%)
CIE-LABlab(21.86, 37.08, -58.69)
CIE-LCHlch(21.86, 69.43, 302.28°)
OKLaboklab(34.21% 0.0063 -0.1699)
OKLCHoklch(34.21% 0.17 272.1)
XYZxyz(6.1091, 3.4777, 25.9353)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21238E #8E8C21
analogous
#215A8E #21238E #56218E
triadic
#21238E #8E2123 #238E21
tetradic
#21238E #8E215A #8E8C21 #218E56
square
#21238E #8E215A #8E8C21 #218E56
split-complementary
#21238E #8E5621 #5A8E21
monochromatic
#0A0B2B #15175C #21238E #2D2FC0 #5255D7

Accessibility & contrast

On white

12.38
#21238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#21238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21238E
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21238E#FFFFFF#000000##FFFFFF
##21238E1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21238e;
/* rgb */ color: rgb(33, 35, 142);
/* oklch */ color: oklch(34.2% 0.170 272.1);
Tailwind
colors: {
  custom: {
    50: '#705fb0',
    500: '#21238e',
    950: '#000000',
  },
}
SCSS
$custom: #21238e;
$custom-light: #705fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#21238e",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 238.899,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34209,
    "c": 0.17,
    "h": 272.1
  },
  "luminance": 0.03478
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21238E

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

Preview Lab → · Contrast checker → · Palette generator →

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