#21288A#21288A

#21288A is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.159 H 271.5°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#21288A
RGBrgb(33, 40, 138)
HSLhsl(236, 61%, 34%)
HSVhsv(236, 76%, 54%)
CMYKcmyk(76.1%, 71%, 0%, 45.9%)
CIE-LABlab(22.57, 32.54, -55.04)
CIE-LCHlch(22.57, 63.94, 300.59°)
OKLaboklab(34.59% 0.0043 -0.1592)
OKLCHoklch(34.59% 0.159 271.5)
XYZxyz(5.9719, 3.6753, 24.4345)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21288A #8A8321
analogous
#215C8A #21288A #4E218A
triadic
#21288A #8A2128 #288A21
tetradic
#21288A #8A215C #8A8321 #218A4E
square
#21288A #8A215C #8A8321 #218A4E
split-complementary
#21288A #8A4E21 #5C8A21
monochromatic
#090B27 #151A59 #21288A #2D36BB #5059D5

Accessibility & contrast

On white

12.10
#21288A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#21288A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21288A
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21288A#FFFFFF#000000##FFFFFF
##21288A1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003188
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #21288a;
/* rgb */ color: rgb(33, 40, 138);
/* oklch */ color: oklch(34.6% 0.159 271.5);
Tailwind
colors: {
  custom: {
    50: '#6e62ad',
    500: '#21288a',
    950: '#000000',
  },
}
SCSS
$custom: #21288a;
$custom-light: #6e62ad;
$custom-dark: #000000;
JSON
{
  "hex": "#21288a",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 138
  },
  "hsl": {
    "h": 236,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34587,
    "c": 0.15931,
    "h": 271.5
  },
  "luminance": 0.03676
}

Semantic roles & 50–950 ramp

primary
#21288A
secondary
#B9B14E
accent
#DA43E5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #21288A

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

Preview Lab → · Contrast checker → · Palette generator →

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