#21266F#21266F

#21266F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.5% C 0.124 H 273.8°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#21266F
RGBrgb(33, 38, 111)
HSLhsl(236, 54%, 28%)
HSVhsv(236, 70%, 44%)
CMYKcmyk(70.3%, 65.8%, 0%, 56.5%)
CIE-LABlab(19.46, 23.76, -42.99)
CIE-LCHlch(19.46, 49.12, 298.93°)
OKLaboklab(31.53% 0.0082 -0.124)
OKLCHoklch(31.53% 0.124 273.8)
XYZxyz(4.1886, 2.8569, 15.3665)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21266F #6F6A21
analogous
#214D6F #21266F #43216F
triadic
#21266F #6F2126 #266F21
tetradic
#21266F #6F214D #6F6A21 #216F43
square
#21266F #6F214D #6F6A21 #216F43
split-complementary
#21266F #6F4321 #4D6F21
monochromatic
#070818 #131640 #21266F #2F369E #434CC7

Accessibility & contrast

On white

13.36
#21266F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21266F
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21266F#FFFFFF#000000##FFFFFF
##21266F1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#002C6E
Tritanopia (blue-blind)
#003946
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #21266f;
/* rgb */ color: rgb(33, 38, 111);
/* oklch */ color: oklch(31.5% 0.124 273.8);
Tailwind
colors: {
  custom: {
    50: '#676099',
    500: '#21266f',
    950: '#000000',
  },
}
SCSS
$custom: #21266f;
$custom-light: #676099;
$custom-dark: #000000;
JSON
{
  "hex": "#21266f",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 111
  },
  "hsl": {
    "h": 236.154,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31528,
    "c": 0.12425,
    "h": 273.8
  },
  "luminance": 0.02857
}

Semantic roles & 50–950 ramp

primary
#21266F
secondary
#A39D49
accent
#D44ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #21266F

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

Preview Lab → · Contrast checker → · Palette generator →

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