#21238F#21238F

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

Color values

HEX#21238F
RGBrgb(33, 35, 143)
HSLhsl(239, 63%, 35%)
HSVhsv(239, 77%, 56%)
CMYKcmyk(76.9%, 75.5%, 0%, 43.9%)
CIE-LABlab(21.97, 37.43, -59.14)
CIE-LCHlch(21.97, 69.99, 302.33°)
OKLaboklab(34.32% 0.0062 -0.1712)
OKLCHoklch(34.32% 0.171 272.1)
XYZxyz(6.1845, 3.5079, 26.3324)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21238F #8F8D21
analogous
#215A8F #21238F #56218F
triadic
#21238F #8F2123 #238F21
tetradic
#21238F #8F215A #8F8D21 #218F56
square
#21238F #8F215A #8F8D21 #218F56
split-complementary
#21238F #8F5621 #5A8F21
monochromatic
#0A0B2C #16175D #21238F #2C2FC1 #5355D7

Accessibility & contrast

On white

12.34
#21238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21238F
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21238F#FFFFFF#000000##FFFFFF
##21238F1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21238f;
/* rgb */ color: rgb(33, 35, 143);
/* oklch */ color: oklch(34.3% 0.171 272.1);
Tailwind
colors: {
  custom: {
    50: '#705fb1',
    500: '#21238f',
    950: '#000000',
  },
}
SCSS
$custom: #21238f;
$custom-light: #705fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#21238f",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 238.909,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34319,
    "c": 0.17128,
    "h": 272.1
  },
  "luminance": 0.03509
}

Semantic roles & 50–950 ramp

primary
#21238F
secondary
#BBB951
accent
#E342E6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #21238F

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

Preview Lab → · Contrast checker → · Palette generator →

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