#21267E#21267E

#21267E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.145 H 272.7°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#21267E
RGBrgb(33, 38, 126)
HSLhsl(237, 58%, 31%)
HSVhsv(237, 74%, 49%)
CMYKcmyk(73.8%, 69.8%, 0%, 50.6%)
CIE-LABlab(20.89, 29.41, -50.26)
CIE-LCHlch(20.89, 58.23, 300.33°)
OKLaboklab(33.01% 0.007 -0.1453)
OKLCHoklch(33.01% 0.145 272.7)
XYZxyz(5.0849, 3.2154, 20.0873)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21267E #7E7921
analogous
#21547E #21267E #4A217E
triadic
#21267E #7E2126 #267E21
tetradic
#21267E #7E2154 #7E7921 #217E4A
square
#21267E #7E2154 #7E7921 #217E4A
split-complementary
#21267E #7E4A21 #547E21
monochromatic
#08091D #14174E #21267E #2E35AE #4A51D0

Accessibility & contrast

On white

12.78
#21267E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#21267E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21267E
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21267E#FFFFFF#000000##FFFFFF
##21267E1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #21267e;
/* rgb */ color: rgb(33, 38, 126);
/* oklch */ color: oklch(33.0% 0.145 272.7);
Tailwind
colors: {
  custom: {
    50: '#6b60a4',
    500: '#21267e',
    950: '#000000',
  },
}
SCSS
$custom: #21267e;
$custom-light: #6b60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#21267e",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 126
  },
  "hsl": {
    "h": 236.774,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33007,
    "c": 0.14545,
    "h": 272.7
  },
  "luminance": 0.03216
}

Semantic roles & 50–950 ramp

primary
#21267E
secondary
#B1AB4A
accent
#D946E2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #21267E

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

Preview Lab → · Contrast checker → · Palette generator →

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