#21286C#21286C

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

Color values

HEX#21286C
RGBrgb(33, 40, 108)
HSLhsl(234, 53%, 28%)
HSVhsv(234, 69%, 42%)
CMYKcmyk(69.4%, 63%, 0%, 57.6%)
CIE-LABlab(19.73, 21.21, -40.60)
CIE-LCHlch(19.73, 45.81, 297.59°)
OKLaboklab(31.65% 0.0066 -0.1169)
OKLCHoklch(31.65% 0.117 273.2)
XYZxyz(4.0919, 2.9233, 14.5331)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21286C #6C6521
analogous
#214D6C #21286C #3F216C
triadic
#21286C #6C2128 #286C21
tetradic
#21286C #6C214D #6C6521 #216C3F
square
#21286C #6C214D #6C6521 #216C3F
split-complementary
#21286C #6C3F21 #4D6C21
monochromatic
#070917 #13173D #21286C #2F399B #424EC5

Accessibility & contrast

On white

13.25
#21286C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21286C
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21286C#FFFFFF#000000##FFFFFF
##21286C1.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21286c;
/* rgb */ color: rgb(33, 40, 108);
/* oklch */ color: oklch(31.6% 0.117 273.2);
Tailwind
colors: {
  custom: {
    50: '#676197',
    500: '#21286c',
    950: '#000000',
  },
}
SCSS
$custom: #21286c;
$custom-light: #676197;
$custom-dark: #000000;
JSON
{
  "hex": "#21286c",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 108
  },
  "hsl": {
    "h": 234.4,
    "s": 53.191,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31646,
    "c": 0.11713,
    "h": 273.2
  },
  "luminance": 0.02924
}

Semantic roles & 50–950 ramp

primary
#21286C
secondary
#A09849
accent
#CF4BDD
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #21286C

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

Preview Lab → · Contrast checker → · Palette generator →

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