#21286D#21286D

#21286D is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.7% C 0.119 H 273.2°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#21286D
RGBrgb(33, 40, 109)
HSLhsl(234, 54%, 28%)
HSVhsv(234, 70%, 43%)
CMYKcmyk(69.7%, 63.3%, 0%, 57.3%)
CIE-LABlab(19.82, 21.60, -41.11)
CIE-LCHlch(19.82, 46.44, 297.72°)
OKLaboklab(31.74% 0.0065 -0.1184)
OKLCHoklch(31.74% 0.119 273.2)
XYZxyz(4.1454, 2.9447, 14.8150)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21286D #6D6621
analogous
#214E6D #21286D #40216D
triadic
#21286D #6D2128 #286D21
tetradic
#21286D #6D214E #6D6621 #216D40
square
#21286D #6D214E #6D6621 #216D40
split-complementary
#21286D #6D4021 #4E6D21
monochromatic
#070917 #13173E #21286D #2F399C #424FC6

Accessibility & contrast

On white

13.22
#21286D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#21286D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21286D
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21286D#FFFFFF#000000##FFFFFF
##21286D1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336F
Deuteranopia (green-blind)
#002D6C
Tritanopia (blue-blind)
#003946
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #21286d;
/* rgb */ color: rgb(33, 40, 109);
/* oklch */ color: oklch(31.7% 0.119 273.2);
Tailwind
colors: {
  custom: {
    50: '#676197',
    500: '#21286d',
    950: '#000000',
  },
}
SCSS
$custom: #21286d;
$custom-light: #676197;
$custom-dark: #000000;
JSON
{
  "hex": "#21286d",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 109
  },
  "hsl": {
    "h": 234.474,
    "s": 53.521,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31737,
    "c": 0.11862,
    "h": 273.2
  },
  "luminance": 0.02945
}

Semantic roles & 50–950 ramp

primary
#21286D
secondary
#A19949
accent
#CF4BDD
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #21286D

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

Preview Lab → · Contrast checker → · Palette generator →

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