#21266E#21266E

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

Color values

HEX#21266E
RGBrgb(33, 38, 110)
HSLhsl(236, 54%, 28%)
HSVhsv(236, 70%, 43%)
CMYKcmyk(70%, 65.5%, 0%, 56.9%)
CIE-LABlab(19.37, 23.38, -42.49)
CIE-LCHlch(19.37, 48.50, 298.82°)
OKLaboklab(31.43% 0.0083 -0.1225)
OKLCHoklch(31.43% 0.123 273.9)
XYZxyz(4.1338, 2.8350, 15.0782)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21266E #6E6921
analogous
#214C6E #21266E #42216E
triadic
#21266E #6E2126 #266E21
tetradic
#21266E #6E214C #6E6921 #216E42
square
#21266E #6E214C #6E6921 #216E42
split-complementary
#21266E #6E4221 #4C6E21
monochromatic
#070818 #13163F #21266E #2F369D #434BC7

Accessibility & contrast

On white

13.40
#21266E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#21266E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21266E
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21266E#FFFFFF#000000##FFFFFF
##21266E1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#003846
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #21266e;
/* rgb */ color: rgb(33, 38, 110);
/* oklch */ color: oklch(31.4% 0.123 273.9);
Tailwind
colors: {
  custom: {
    50: '#676098',
    500: '#21266e',
    950: '#000000',
  },
}
SCSS
$custom: #21266e;
$custom-light: #676098;
$custom-dark: #000000;
JSON
{
  "hex": "#21266e",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 110
  },
  "hsl": {
    "h": 236.104,
    "s": 53.846,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31433,
    "c": 0.1228,
    "h": 273.9
  },
  "luminance": 0.02835
}

Semantic roles & 50–950 ramp

primary
#21266E
secondary
#A29C49
accent
#D44BDD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #21266E

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

Preview Lab → · Contrast checker → · Palette generator →

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