#21267B#21267B

#21267B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.141 H 272.9°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#21267B
RGBrgb(33, 38, 123)
HSLhsl(237, 58%, 31%)
HSVhsv(237, 73%, 48%)
CMYKcmyk(73.2%, 69.1%, 0%, 51.8%)
CIE-LABlab(20.59, 28.29, -48.83)
CIE-LCHlch(20.59, 56.44, 300.08°)
OKLaboklab(32.7% 0.0073 -0.1411)
OKLCHoklch(32.7% 0.141 272.9)
XYZxyz(4.8943, 3.1391, 19.0830)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21267B #7B7621
analogous
#21537B #21267B #49217B
triadic
#21267B #7B2126 #267B21
tetradic
#21267B #7B2153 #7B7621 #217B49
square
#21267B #7B2153 #7B7621 #217B49
split-complementary
#21267B #7B4921 #537B21
monochromatic
#07081A #14174B #21267B #2E35AB #4850CE

Accessibility & contrast

On white

12.90
#21267B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#21267B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21267B
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21267B#FFFFFF#000000##FFFFFF
##21267B1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21267b;
/* rgb */ color: rgb(33, 38, 123);
/* oklch */ color: oklch(32.7% 0.141 272.9);
Tailwind
colors: {
  custom: {
    50: '#6a60a2',
    500: '#21267b',
    950: '#000000',
  },
}
SCSS
$custom: #21267b;
$custom-light: #6a60a2;
$custom-dark: #000000;
JSON
{
  "hex": "#21267b",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 123
  },
  "hsl": {
    "h": 236.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32703,
    "c": 0.1413,
    "h": 272.9
  },
  "luminance": 0.0314
}

Semantic roles & 50–950 ramp

primary
#21267B
secondary
#AEA84A
accent
#D847E1
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #21267B

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

Preview Lab → · Contrast checker → · Palette generator →

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