#21267C#21267C

#21267C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.143 H 272.9°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#21267C
RGBrgb(33, 38, 124)
HSLhsl(237, 58%, 31%)
HSVhsv(237, 73%, 49%)
CMYKcmyk(73.4%, 69.4%, 0%, 51.4%)
CIE-LABlab(20.69, 28.66, -49.31)
CIE-LCHlch(20.69, 57.04, 300.17°)
OKLaboklab(32.8% 0.0072 -0.1425)
OKLCHoklch(32.8% 0.143 272.9)
XYZxyz(4.9572, 3.1643, 19.4144)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21267C #7C7721
analogous
#21537C #21267C #49217C
triadic
#21267C #7C2126 #267C21
tetradic
#21267C #7C2153 #7C7721 #217C49
square
#21267C #7C2153 #7C7721 #217C49
split-complementary
#21267C #7C4921 #537C21
monochromatic
#07081B #14174C #21267C #2E35AC #4950CF

Accessibility & contrast

On white

12.86
#21267C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21267C
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21267C#FFFFFF#000000##FFFFFF
##21267C1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21267c;
/* rgb */ color: rgb(33, 38, 124);
/* oklch */ color: oklch(32.8% 0.143 272.9);
Tailwind
colors: {
  custom: {
    50: '#6b60a3',
    500: '#21267c',
    950: '#000000',
  },
}
SCSS
$custom: #21267c;
$custom-light: #6b60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#21267c",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 124
  },
  "hsl": {
    "h": 236.703,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32804,
    "c": 0.14269,
    "h": 272.9
  },
  "luminance": 0.03165
}

Semantic roles & 50–950 ramp

primary
#21267C
secondary
#AFA94A
accent
#D947E1
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #21267C

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

Preview Lab → · Contrast checker → · Palette generator →

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