#21278C#21278C

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

Color values

HEX#21278C
RGBrgb(33, 39, 140)
HSLhsl(237, 62%, 34%)
HSVhsv(237, 76%, 55%)
CMYKcmyk(76.4%, 72.1%, 0%, 45.1%)
CIE-LABlab(22.54, 33.90, -56.34)
CIE-LCHlch(22.54, 65.75, 301.04°)
OKLaboklab(34.63% 0.0046 -0.163)
OKLCHoklch(34.63% 0.163 271.6)
XYZxyz(6.0847, 3.6672, 25.1930)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21278C #8C8621
analogous
#215D8C #21278C #51218C
triadic
#21278C #8C2127 #278C21
tetradic
#21278C #8C215D #8C8621 #218C51
square
#21278C #8C215D #8C8621 #218C51
split-complementary
#21278C #8C5121 #5D8C21
monochromatic
#0A0B29 #15195A #21278C #2D35BE #5159D6

Accessibility & contrast

On white

12.11
#21278C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#21278C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21278C
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21278C#FFFFFF#000000##FFFFFF
##21278C1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21278c;
/* rgb */ color: rgb(33, 39, 140);
/* oklch */ color: oklch(34.6% 0.163 271.6);
Tailwind
colors: {
  custom: {
    50: '#6f62af',
    500: '#21278c',
    950: '#000000',
  },
}
SCSS
$custom: #21278c;
$custom-light: #6f62af;
$custom-dark: #000000;
JSON
{
  "hex": "#21278c",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 140
  },
  "hsl": {
    "h": 236.636,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34629,
    "c": 0.16309,
    "h": 271.6
  },
  "luminance": 0.03668
}

Semantic roles & 50–950 ramp

primary
#21278C
secondary
#B9B44F
accent
#DC43E5
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080510
muted
#7B797F

Preview Lab

Preview with #21278C

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

Preview Lab → · Contrast checker → · Palette generator →

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