#21278D#21278D

#21278D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.164 H 271.6°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#21278D
RGBrgb(33, 39, 141)
HSLhsl(237, 62%, 34%)
HSVhsv(237, 77%, 55%)
CMYKcmyk(76.6%, 72.3%, 0%, 44.7%)
CIE-LABlab(22.64, 34.26, -56.79)
CIE-LCHlch(22.64, 66.32, 301.11°)
OKLaboklab(34.73% 0.0045 -0.1643)
OKLCHoklch(34.73% 0.164 271.6)
XYZxyz(6.1588, 3.6968, 25.5831)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21278D #8D8721
analogous
#215D8D #21278D #51218D
triadic
#21278D #8D2127 #278D21
tetradic
#21278D #8D215D #8D8721 #218D51
square
#21278D #8D215D #8D8721 #218D51
split-complementary
#21278D #8D5121 #5D8D21
monochromatic
#0A0C2A #15195B #21278D #2D35BF #5259D6

Accessibility & contrast

On white

12.07
#21278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#21278D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21278D
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21278D#FFFFFF#000000##FFFFFF
##21278D1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21278d;
/* rgb */ color: rgb(33, 39, 141);
/* oklch */ color: oklch(34.7% 0.164 271.6);
Tailwind
colors: {
  custom: {
    50: '#6f62af',
    500: '#21278d',
    950: '#000000',
  },
}
SCSS
$custom: #21278d;
$custom-light: #6f62af;
$custom-dark: #000000;
JSON
{
  "hex": "#21278d",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 236.667,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34734,
    "c": 0.16441,
    "h": 271.6
  },
  "luminance": 0.03697
}

Semantic roles & 50–950 ramp

primary
#21278D
secondary
#BAB450
accent
#DC43E5
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #21278D

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

Preview Lab → · Contrast checker → · Palette generator →

#21278D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva