#21286E#21286E

#21286E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.8% C 0.120 H 273.1°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#21286E
RGBrgb(33, 40, 110)
HSLhsl(235, 54%, 28%)
HSVhsv(235, 70%, 43%)
CMYKcmyk(70%, 63.6%, 0%, 56.9%)
CIE-LABlab(19.91, 21.98, -41.61)
CIE-LCHlch(19.91, 47.06, 297.85°)
OKLaboklab(31.83% 0.0065 -0.1199)
OKLCHoklch(31.83% 0.12 273.1)
XYZxyz(4.1995, 2.9663, 15.1001)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21286E #6E6721
analogous
#214E6E #21286E #40216E
triadic
#21286E #6E2128 #286E21
tetradic
#21286E #6E214E #6E6721 #216E40
square
#21286E #6E214E #6E6721 #216E40
split-complementary
#21286E #6E4021 #4E6E21
monochromatic
#070918 #13173F #21286E #2F399D #434FC7

Accessibility & contrast

On white

13.18
#21286E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21286E
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21286E#FFFFFF#000000##FFFFFF
##21286E1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#002D6D
Tritanopia (blue-blind)
#003947
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #21286e;
/* rgb */ color: rgb(33, 40, 110);
/* oklch */ color: oklch(31.8% 0.120 273.1);
Tailwind
colors: {
  custom: {
    50: '#676198',
    500: '#21286e',
    950: '#000000',
  },
}
SCSS
$custom: #21286e;
$custom-light: #676198;
$custom-dark: #000000;
JSON
{
  "hex": "#21286e",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 110
  },
  "hsl": {
    "h": 234.545,
    "s": 53.846,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3183,
    "c": 0.1201,
    "h": 273.1
  },
  "luminance": 0.02967
}

Semantic roles & 50–950 ramp

primary
#21286E
secondary
#A29A49
accent
#D04BDD
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #21286E

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

Preview Lab → · Contrast checker → · Palette generator →

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