#21276C#21276C

#21276C is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.4% C 0.119 H 273.6°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#21276C
RGBrgb(33, 39, 108)
HSLhsl(235, 53%, 28%)
HSVhsv(235, 69%, 42%)
CMYKcmyk(69.4%, 63.9%, 0%, 57.6%)
CIE-LABlab(19.46, 21.92, -41.05)
CIE-LCHlch(19.46, 46.53, 298.10°)
OKLaboklab(31.44% 0.0075 -0.1183)
OKLCHoklch(31.44% 0.119 273.6)
XYZxyz(4.0586, 2.8567, 14.5220)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21276C #6C6621
analogous
#214C6C #21276C #40216C
triadic
#21276C #6C2127 #276C21
tetradic
#21276C #6C214C #6C6621 #216C40
square
#21276C #6C214C #6C6621 #216C40
split-complementary
#21276C #6C4021 #4C6C21
monochromatic
#070817 #13163D #21276C #2F389B #424DC5

Accessibility & contrast

On white

13.36
#21276C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#21276C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21276C
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21276C#FFFFFF#000000##FFFFFF
##21276C1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336E
Deuteranopia (green-blind)
#002C6B
Tritanopia (blue-blind)
#003845
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #21276c;
/* rgb */ color: rgb(33, 39, 108);
/* oklch */ color: oklch(31.4% 0.119 273.6);
Tailwind
colors: {
  custom: {
    50: '#676197',
    500: '#21276c',
    950: '#000000',
  },
}
SCSS
$custom: #21276c;
$custom-light: #676197;
$custom-dark: #000000;
JSON
{
  "hex": "#21276c",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 108
  },
  "hsl": {
    "h": 235.2,
    "s": 53.191,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31444,
    "c": 0.11851,
    "h": 273.6
  },
  "luminance": 0.02857
}

Semantic roles & 50–950 ramp

primary
#21276C
secondary
#A09949
accent
#D14BDD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #21276C

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

Preview Lab → · Contrast checker → · Palette generator →

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