#21286F#21286F

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

Color values

HEX#21286F
RGBrgb(33, 40, 111)
HSLhsl(235, 54%, 28%)
HSVhsv(235, 70%, 44%)
CMYKcmyk(70.3%, 64%, 0%, 56.5%)
CIE-LABlab(20.00, 22.37, -42.11)
CIE-LCHlch(20.00, 47.69, 297.98°)
OKLaboklab(31.92% 0.0065 -0.1214)
OKLCHoklch(31.92% 0.122 273.1)
XYZxyz(4.2543, 2.9882, 15.3884)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21286F #6F6821
analogous
#214F6F #21286F #41216F
triadic
#21286F #6F2128 #286F21
tetradic
#21286F #6F214F #6F6821 #216F41
square
#21286F #6F214F #6F6821 #216F41
split-complementary
#21286F #6F4121 #4F6F21
monochromatic
#070918 #131740 #21286F #2F399E #434FC7

Accessibility & contrast

On white

13.14
#21286F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#21286F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21286F
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21286F#FFFFFF#000000##FFFFFF
##21286F1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#002D6E
Tritanopia (blue-blind)
#003A47
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #21286f;
/* rgb */ color: rgb(33, 40, 111);
/* oklch */ color: oklch(31.9% 0.122 273.1);
Tailwind
colors: {
  custom: {
    50: '#676199',
    500: '#21286f',
    950: '#000000',
  },
}
SCSS
$custom: #21286f;
$custom-light: #676199;
$custom-dark: #000000;
JSON
{
  "hex": "#21286f",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 111
  },
  "hsl": {
    "h": 234.615,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31922,
    "c": 0.12157,
    "h": 273.1
  },
  "luminance": 0.02989
}

Semantic roles & 50–950 ramp

primary
#21286F
secondary
#A39B49
accent
#D04ADE
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #21286F

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

Preview Lab → · Contrast checker → · Palette generator →

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