#21286A#21286A

#21286A is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.5% C 0.114 H 273.3°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#21286A
RGBrgb(33, 40, 106)
HSLhsl(234, 53%, 27%)
HSVhsv(234, 69%, 42%)
CMYKcmyk(68.9%, 62.3%, 0%, 58.4%)
CIE-LABlab(19.56, 20.44, -39.58)
CIE-LCHlch(19.56, 44.55, 297.31°)
OKLaboklab(31.46% 0.0066 -0.114)
OKLCHoklch(31.46% 0.114 273.3)
XYZxyz(3.9866, 2.8812, 13.9789)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21286A #6A6321
analogous
#214C6A #21286A #3F216A
triadic
#21286A #6A2128 #286A21
tetradic
#21286A #6A214C #6A6321 #216A3F
square
#21286A #6A214C #6A6321 #216A3F
split-complementary
#21286A #6A3F21 #4C6A21
monochromatic
#070917 #12163B #21286A #303A99 #414EC4

Accessibility & contrast

On white

13.32
#21286A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#21286A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21286A
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21286A#FFFFFF#000000##FFFFFF
##21286A1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#002C69
Tritanopia (blue-blind)
#003844
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #21286a;
/* rgb */ color: rgb(33, 40, 106);
/* oklch */ color: oklch(31.5% 0.114 273.3);
Tailwind
colors: {
  custom: {
    50: '#666195',
    500: '#21286a',
    950: '#000000',
  },
}
SCSS
$custom: #21286a;
$custom-light: #666195;
$custom-dark: #000000;
JSON
{
  "hex": "#21286a",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 106
  },
  "hsl": {
    "h": 234.247,
    "s": 52.518,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31464,
    "c": 0.11415,
    "h": 273.3
  },
  "luminance": 0.02882
}

Semantic roles & 50–950 ramp

primary
#21286A
secondary
#9E9649
accent
#CE4CDC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #21286A

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

Preview Lab → · Contrast checker → · Palette generator →

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