#21278F#21278F

#21278F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.167 H 271.4°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#21278F
RGBrgb(33, 39, 143)
HSLhsl(237, 63%, 35%)
HSVhsv(237, 77%, 56%)
CMYKcmyk(76.9%, 72.7%, 0%, 43.9%)
CIE-LABlab(22.85, 34.99, -57.69)
CIE-LCHlch(22.85, 67.47, 301.24°)
OKLaboklab(34.95% 0.0042 -0.167)
OKLCHoklch(34.95% 0.167 271.4)
XYZxyz(6.3090, 3.7569, 26.3739)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21278F #8F8921
analogous
#215E8F #21278F #52218F
triadic
#21278F #8F2127 #278F21
tetradic
#21278F #8F215E #8F8921 #218F52
square
#21278F #8F215E #8F8921 #218F52
split-complementary
#21278F #8F5221 #5E8F21
monochromatic
#0A0C2C #16195D #21278F #2C35C1 #535AD7

Accessibility & contrast

On white

11.99
#21278F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#21278F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21278F
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21278F#FFFFFF#000000##FFFFFF
##21278F1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #21278f;
/* rgb */ color: rgb(33, 39, 143);
/* oklch */ color: oklch(34.9% 0.167 271.4);
Tailwind
colors: {
  custom: {
    50: '#6f62b1',
    500: '#21278f',
    950: '#000000',
  },
}
SCSS
$custom: #21278f;
$custom-light: #6f62b1;
$custom-dark: #000000;
JSON
{
  "hex": "#21278f",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 236.727,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34946,
    "c": 0.16702,
    "h": 271.4
  },
  "luminance": 0.03758
}

Semantic roles & 50–950 ramp

primary
#21278F
secondary
#BBB551
accent
#DD42E6
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #21278F

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

Preview Lab → · Contrast checker → · Palette generator →

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