#21266D#21266D

#21266D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.3% C 0.121 H 273.9°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#21266D
RGBrgb(33, 38, 109)
HSLhsl(236, 54%, 28%)
HSVhsv(236, 70%, 43%)
CMYKcmyk(69.7%, 65.1%, 0%, 57.3%)
CIE-LABlab(19.28, 23.00, -41.99)
CIE-LCHlch(19.28, 47.87, 298.71°)
OKLaboklab(31.34% 0.0083 -0.121)
OKLCHoklch(31.34% 0.121 273.9)
XYZxyz(4.0797, 2.8133, 14.7931)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21266D #6D6821
analogous
#214C6D #21266D #42216D
triadic
#21266D #6D2126 #266D21
tetradic
#21266D #6D214C #6D6821 #216D42
square
#21266D #6D214C #6D6821 #216D42
split-complementary
#21266D #6D4221 #4C6D21
monochromatic
#070817 #13163E #21266D #2F369C #424BC6

Accessibility & contrast

On white

13.44
#21266D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#21266D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21266D
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21266D#FFFFFF#000000##FFFFFF
##21266D1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326F
Deuteranopia (green-blind)
#002B6C
Tritanopia (blue-blind)
#003845
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #21266d;
/* rgb */ color: rgb(33, 38, 109);
/* oklch */ color: oklch(31.3% 0.121 273.9);
Tailwind
colors: {
  custom: {
    50: '#676098',
    500: '#21266d',
    950: '#000000',
  },
}
SCSS
$custom: #21266d;
$custom-light: #676098;
$custom-dark: #000000;
JSON
{
  "hex": "#21266d",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 109
  },
  "hsl": {
    "h": 236.053,
    "s": 53.521,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31339,
    "c": 0.12134,
    "h": 273.9
  },
  "luminance": 0.02814
}

Semantic roles & 50–950 ramp

primary
#21266D
secondary
#A19B49
accent
#D34BDD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #21266D

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

Preview Lab → · Contrast checker → · Palette generator →

#21266D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva