#21278E#21278E

#21278E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.166 H 271.5°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#21278E
RGBrgb(33, 39, 142)
HSLhsl(237, 62%, 34%)
HSVhsv(237, 77%, 56%)
CMYKcmyk(76.8%, 72.5%, 0%, 44.3%)
CIE-LABlab(22.75, 34.63, -57.24)
CIE-LCHlch(22.75, 66.90, 301.17°)
OKLaboklab(34.84% 0.0043 -0.1657)
OKLCHoklch(34.84% 0.166 271.5)
XYZxyz(6.2335, 3.7267, 25.9767)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21278E #8E8821
analogous
#215E8E #21278E #52218E
triadic
#21278E #8E2127 #278E21
tetradic
#21278E #8E215E #8E8821 #218E52
square
#21278E #8E215E #8E8821 #218E52
split-complementary
#21278E #8E5221 #5E8E21
monochromatic
#0A0C2B #15195C #21278E #2D35C0 #525AD7

Accessibility & contrast

On white

12.03
#21278E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21278E
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21278E#FFFFFF#000000##FFFFFF
##21278E1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21278e;
/* rgb */ color: rgb(33, 39, 142);
/* oklch */ color: oklch(34.8% 0.166 271.5);
Tailwind
colors: {
  custom: {
    50: '#6f62b0',
    500: '#21278e',
    950: '#000000',
  },
}
SCSS
$custom: #21278e;
$custom-light: #6f62b0;
$custom-dark: #000000;
JSON
{
  "hex": "#21278e",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 236.697,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3484,
    "c": 0.16572,
    "h": 271.5
  },
  "luminance": 0.03727
}

Semantic roles & 50–950 ramp

primary
#21278E
secondary
#BAB550
accent
#DC42E5
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #21278E

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

Preview Lab → · Contrast checker → · Palette generator →

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