#21266A#21266A

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

Color values

HEX#21266A
RGBrgb(33, 38, 106)
HSLhsl(236, 53%, 27%)
HSVhsv(236, 69%, 42%)
CMYKcmyk(68.9%, 64.2%, 0%, 58.4%)
CIE-LABlab(19.01, 21.85, -40.48)
CIE-LCHlch(19.01, 46.00, 298.36°)
OKLaboklab(31.06% 0.0085 -0.1166)
OKLCHoklch(31.06% 0.117 274.1)
XYZxyz(3.9210, 2.7498, 13.9570)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21266A #6A6521
analogous
#214B6A #21266A #40216A
triadic
#21266A #6A2126 #266A21
tetradic
#21266A #6A214B #6A6521 #216A40
square
#21266A #6A214B #6A6521 #216A40
split-complementary
#21266A #6A4021 #4B6A21
monochromatic
#070817 #12153B #21266A #303799 #414AC4

Accessibility & contrast

On white

13.55
#21266A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21266A
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21266A#FFFFFF#000000##FFFFFF
##21266A1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#002B69
Tritanopia (blue-blind)
#003744
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #21266a;
/* rgb */ color: rgb(33, 38, 106);
/* oklch */ color: oklch(31.1% 0.117 274.1);
Tailwind
colors: {
  custom: {
    50: '#666095',
    500: '#21266a',
    950: '#000000',
  },
}
SCSS
$custom: #21266a;
$custom-light: #666095;
$custom-dark: #000000;
JSON
{
  "hex": "#21266a",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 106
  },
  "hsl": {
    "h": 235.89,
    "s": 52.518,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31058,
    "c": 0.11692,
    "h": 274.1
  },
  "luminance": 0.0275
}

Semantic roles & 50–950 ramp

primary
#21266A
secondary
#9E9849
accent
#D24CDC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #21266A

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

Preview Lab → · Contrast checker → · Palette generator →

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