#21278A#21278A

#21278A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.160 H 271.7°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#21278A
RGBrgb(33, 39, 138)
HSLhsl(237, 61%, 34%)
HSVhsv(237, 76%, 54%)
CMYKcmyk(76.1%, 71.7%, 0%, 45.9%)
CIE-LABlab(22.33, 33.18, -55.43)
CIE-LCHlch(22.33, 64.60, 300.90°)
OKLaboklab(34.42% 0.0049 -0.1604)
OKLCHoklch(34.42% 0.16 271.7)
XYZxyz(5.9386, 3.6087, 24.4234)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21278A #8A8421
analogous
#215B8A #21278A #4F218A
triadic
#21278A #8A2127 #278A21
tetradic
#21278A #8A215B #8A8421 #218A4F
square
#21278A #8A215B #8A8421 #218A4F
split-complementary
#21278A #8A4F21 #5B8A21
monochromatic
#090B27 #151959 #21278A #2D35BB #5058D5

Accessibility & contrast

On white

12.20
#21278A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#21278A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21278A
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21278A#FFFFFF#000000##FFFFFF
##21278A1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003088
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #21278a;
/* rgb */ color: rgb(33, 39, 138);
/* oklch */ color: oklch(34.4% 0.160 271.7);
Tailwind
colors: {
  custom: {
    50: '#6e62ad',
    500: '#21278a',
    950: '#000000',
  },
}
SCSS
$custom: #21278a;
$custom-light: #6e62ad;
$custom-dark: #000000;
JSON
{
  "hex": "#21278a",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 138
  },
  "hsl": {
    "h": 236.571,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34418,
    "c": 0.16045,
    "h": 271.7
  },
  "luminance": 0.03609
}

Semantic roles & 50–950 ramp

primary
#21278A
secondary
#B9B24E
accent
#DB43E5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #21278A

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

Preview Lab → · Contrast checker → · Palette generator →

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