#21266B#21266B

#21266B is a dark, moderate blue. Relative luminance 0.028; OKLCH L 31.2% C 0.118 H 274.1°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#21266B
RGBrgb(33, 38, 107)
HSLhsl(236, 53%, 27%)
HSVhsv(236, 69%, 42%)
CMYKcmyk(69.2%, 64.5%, 0%, 58%)
CIE-LABlab(19.10, 22.23, -40.98)
CIE-LCHlch(19.10, 46.62, 298.48°)
OKLaboklab(31.15% 0.0084 -0.1181)
OKLCHoklch(31.15% 0.118 274.1)
XYZxyz(3.9733, 2.7707, 14.2325)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21266B #6B6621
analogous
#214B6B #21266B #41216B
triadic
#21266B #6B2126 #266B21
tetradic
#21266B #6B214B #6B6621 #216B41
square
#21266B #6B214B #6B6621 #216B41
split-complementary
#21266B #6B4121 #4B6B21
monochromatic
#070817 #13153C #21266B #2F379A #424BC5

Accessibility & contrast

On white

13.51
#21266B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#21266B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21266B
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21266B#FFFFFF#000000##FFFFFF
##21266B1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#002B6A
Tritanopia (blue-blind)
#003744
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #21266b;
/* rgb */ color: rgb(33, 38, 107);
/* oklch */ color: oklch(31.2% 0.118 274.1);
Tailwind
colors: {
  custom: {
    50: '#666096',
    500: '#21266b',
    950: '#000000',
  },
}
SCSS
$custom: #21266b;
$custom-light: #666096;
$custom-dark: #000000;
JSON
{
  "hex": "#21266b",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 107
  },
  "hsl": {
    "h": 235.946,
    "s": 52.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31151,
    "c": 0.11839,
    "h": 274.1
  },
  "luminance": 0.02771
}

Semantic roles & 50–950 ramp

primary
#21266B
secondary
#9F9949
accent
#D24CDC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #21266B

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

Preview Lab → · Contrast checker → · Palette generator →

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