#21288C#21288C

#21288C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.162 H 271.4°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#21288C
RGBrgb(33, 40, 140)
HSLhsl(236, 62%, 34%)
HSVhsv(236, 76%, 55%)
CMYKcmyk(76.4%, 71.4%, 0%, 45.1%)
CIE-LABlab(22.77, 33.27, -55.95)
CIE-LCHlch(22.77, 65.10, 300.73°)
OKLaboklab(34.8% 0.004 -0.1619)
OKLCHoklch(34.8% 0.162 271.4)
XYZxyz(6.1180, 3.7337, 25.2041)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21288C #8C8521
analogous
#215E8C #21288C #50218C
triadic
#21288C #8C2128 #288C21
tetradic
#21288C #8C215E #8C8521 #218C50
square
#21288C #8C215E #8C8521 #218C50
split-complementary
#21288C #8C5021 #5E8C21
monochromatic
#0A0C29 #151A5A #21288C #2D36BE #515AD6

Accessibility & contrast

On white

12.02
#21288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#21288C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21288C
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21288C#FFFFFF#000000##FFFFFF
##21288C1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #21288c;
/* rgb */ color: rgb(33, 40, 140);
/* oklch */ color: oklch(34.8% 0.162 271.4);
Tailwind
colors: {
  custom: {
    50: '#6f62af',
    500: '#21288c',
    950: '#000000',
  },
}
SCSS
$custom: #21288c;
$custom-light: #6f62af;
$custom-dark: #000000;
JSON
{
  "hex": "#21288c",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 236.075,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34795,
    "c": 0.16197,
    "h": 271.4
  },
  "luminance": 0.03734
}

Semantic roles & 50–950 ramp

primary
#21288C
secondary
#B9B34F
accent
#DA43E5
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080510
muted
#7B797F

Preview Lab

Preview with #21288C

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

Preview Lab → · Contrast checker → · Palette generator →

#21288C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva