#21267A#21267A

#21267A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.140 H 273.0°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#21267A
RGBrgb(33, 38, 122)
HSLhsl(237, 57%, 30%)
HSVhsv(237, 73%, 48%)
CMYKcmyk(73%, 68.9%, 0%, 52.2%)
CIE-LABlab(20.50, 27.92, -48.36)
CIE-LCHlch(20.50, 55.84, 300.00°)
OKLaboklab(32.6% 0.0074 -0.1397)
OKLCHoklch(32.6% 0.14 273)
XYZxyz(4.8320, 3.1142, 18.7550)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21267A #7A7521
analogous
#21527A #21267A #48217A
triadic
#21267A #7A2126 #267A21
tetradic
#21267A #7A2152 #7A7521 #217A48
square
#21267A #7A2152 #7A7521 #217A48
split-complementary
#21267A #7A4821 #527A21
monochromatic
#07081A #14174A #21267A #2E35AA #484FCD

Accessibility & contrast

On white

12.94
#21267A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#21267A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21267A
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21267A#FFFFFF#000000##FFFFFF
##21267A1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#002D78
Tritanopia (blue-blind)
#003C4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #21267a;
/* rgb */ color: rgb(33, 38, 122);
/* oklch */ color: oklch(32.6% 0.140 273.0);
Tailwind
colors: {
  custom: {
    50: '#6a60a1',
    500: '#21267a',
    950: '#000000',
  },
}
SCSS
$custom: #21267a;
$custom-light: #6a60a1;
$custom-dark: #000000;
JSON
{
  "hex": "#21267a",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 122
  },
  "hsl": {
    "h": 236.629,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32603,
    "c": 0.13991,
    "h": 273
  },
  "luminance": 0.03115
}

Semantic roles & 50–950 ramp

primary
#21267A
secondary
#ADA74A
accent
#D847E1
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #21267A

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

Preview Lab → · Contrast checker → · Palette generator →

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