#21277A#21277A

#21277A is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.139 H 272.7°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#21277A
RGBrgb(33, 39, 122)
HSLhsl(236, 57%, 30%)
HSVhsv(236, 73%, 48%)
CMYKcmyk(73%, 68%, 0%, 52.2%)
CIE-LABlab(20.75, 27.25, -47.94)
CIE-LCHlch(20.75, 55.15, 299.61°)
OKLaboklab(32.79% 0.0066 -0.1385)
OKLCHoklch(32.79% 0.139 272.7)
XYZxyz(4.8644, 3.1790, 18.7658)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21277A #7A7421
analogous
#21537A #21277A #47217A
triadic
#21277A #7A2127 #277A21
tetradic
#21277A #7A2153 #7A7421 #217A47
square
#21277A #7A2153 #7A7421 #217A47
split-complementary
#21277A #7A4721 #537A21
monochromatic
#07081A #14184A #21277A #2E36AA #4851CD

Accessibility & contrast

On white

12.84
#21277A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#21277A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21277A
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21277A#FFFFFF#000000##FFFFFF
##21277A1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #21277a;
/* rgb */ color: rgb(33, 39, 122);
/* oklch */ color: oklch(32.8% 0.139 272.7);
Tailwind
colors: {
  custom: {
    50: '#6a61a1',
    500: '#21277a',
    950: '#000000',
  },
}
SCSS
$custom: #21277a;
$custom-light: #6a61a1;
$custom-dark: #000000;
JSON
{
  "hex": "#21277a",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 122
  },
  "hsl": {
    "h": 235.955,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32786,
    "c": 0.13866,
    "h": 272.7
  },
  "luminance": 0.0318
}

Semantic roles & 50–950 ramp

primary
#21277A
secondary
#ADA64A
accent
#D647E1
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #21277A

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

Preview Lab → · Contrast checker → · Palette generator →

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