#21276E#21276E

#21276E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.6% C 0.121 H 273.5°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#21276E
RGBrgb(33, 39, 110)
HSLhsl(235, 54%, 28%)
HSVhsv(235, 70%, 43%)
CMYKcmyk(70%, 64.5%, 0%, 56.9%)
CIE-LABlab(19.64, 22.68, -42.05)
CIE-LCHlch(19.64, 47.78, 298.34°)
OKLaboklab(31.63% 0.0074 -0.1212)
OKLCHoklch(31.63% 0.121 273.5)
XYZxyz(4.1663, 2.8998, 15.0890)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21276E #6E6821
analogous
#214D6E #21276E #41216E
triadic
#21276E #6E2127 #276E21
tetradic
#21276E #6E214D #6E6821 #216E41
square
#21276E #6E214D #6E6821 #216E41
split-complementary
#21276E #6E4121 #4D6E21
monochromatic
#070818 #13163F #21276E #2F389D #434DC7

Accessibility & contrast

On white

13.29
#21276E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#21276E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21276E
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21276E#FFFFFF#000000##FFFFFF
##21276E1.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)
#003370
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#003946
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #21276e;
/* rgb */ color: rgb(33, 39, 110);
/* oklch */ color: oklch(31.6% 0.121 273.5);
Tailwind
colors: {
  custom: {
    50: '#676198',
    500: '#21276e',
    950: '#000000',
  },
}
SCSS
$custom: #21276e;
$custom-light: #676198;
$custom-dark: #000000;
JSON
{
  "hex": "#21276e",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 110
  },
  "hsl": {
    "h": 235.325,
    "s": 53.846,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3163,
    "c": 0.12146,
    "h": 273.5
  },
  "luminance": 0.029
}

Semantic roles & 50–950 ramp

primary
#21276E
secondary
#A29B49
accent
#D24BDD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #21276E

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

Preview Lab → · Contrast checker → · Palette generator →

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