#21286B#21286B

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

Color values

HEX#21286B
RGBrgb(33, 40, 107)
HSLhsl(234, 53%, 27%)
HSVhsv(234, 69%, 42%)
CMYKcmyk(69.2%, 62.6%, 0%, 58%)
CIE-LABlab(19.65, 20.83, -40.09)
CIE-LCHlch(19.65, 45.18, 297.45°)
OKLaboklab(31.56% 0.0066 -0.1155)
OKLCHoklch(31.56% 0.116 273.3)
XYZxyz(4.0389, 2.9021, 14.2544)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21286B #6B6421
analogous
#214D6B #21286B #3F216B
triadic
#21286B #6B2128 #286B21
tetradic
#21286B #6B214D #6B6421 #216B3F
square
#21286B #6B214D #6B6421 #216B3F
split-complementary
#21286B #6B3F21 #4D6B21
monochromatic
#070917 #13173C #21286B #2F399A #424EC5

Accessibility & contrast

On white

13.29
#21286B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21286B
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21286B#FFFFFF#000000##FFFFFF
##21286B1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336D
Deuteranopia (green-blind)
#002C6A
Tritanopia (blue-blind)
#003945
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #21286b;
/* rgb */ color: rgb(33, 40, 107);
/* oklch */ color: oklch(31.6% 0.116 273.3);
Tailwind
colors: {
  custom: {
    50: '#666196',
    500: '#21286b',
    950: '#000000',
  },
}
SCSS
$custom: #21286b;
$custom-light: #666196;
$custom-dark: #000000;
JSON
{
  "hex": "#21286b",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 107
  },
  "hsl": {
    "h": 234.324,
    "s": 52.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31555,
    "c": 0.11565,
    "h": 273.3
  },
  "luminance": 0.02902
}

Semantic roles & 50–950 ramp

primary
#21286B
secondary
#9F9749
accent
#CF4CDC
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #21286B

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

Preview Lab → · Contrast checker → · Palette generator →

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