#21276A#21276A

#21276A is a dark, moderate blue. Relative luminance 0.028; OKLCH L 31.3% C 0.116 H 273.7°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#21276A
RGBrgb(33, 39, 106)
HSLhsl(235, 53%, 27%)
HSVhsv(235, 69%, 42%)
CMYKcmyk(68.9%, 63.2%, 0%, 58.4%)
CIE-LABlab(19.29, 21.15, -40.03)
CIE-LCHlch(19.29, 45.27, 297.85°)
OKLaboklab(31.26% 0.0075 -0.1153)
OKLCHoklch(31.26% 0.116 273.7)
XYZxyz(3.9534, 2.8146, 13.9678)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21276A #6A6421
analogous
#214C6A #21276A #3F216A
triadic
#21276A #6A2127 #276A21
tetradic
#21276A #6A214C #6A6421 #216A3F
square
#21276A #6A214C #6A6421 #216A3F
split-complementary
#21276A #6A3F21 #4C6A21
monochromatic
#070917 #12163B #21276A #303899 #414CC4

Accessibility & contrast

On white

13.44
#21276A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#21276A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21276A
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21276A#FFFFFF#000000##FFFFFF
##21276A1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#002C69
Tritanopia (blue-blind)
#003844
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #21276a;
/* rgb */ color: rgb(33, 39, 106);
/* oklch */ color: oklch(31.3% 0.116 273.7);
Tailwind
colors: {
  custom: {
    50: '#666195',
    500: '#21276a',
    950: '#000000',
  },
}
SCSS
$custom: #21276a;
$custom-light: #666195;
$custom-dark: #000000;
JSON
{
  "hex": "#21276a",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 106
  },
  "hsl": {
    "h": 235.068,
    "s": 52.518,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3126,
    "c": 0.11553,
    "h": 273.7
  },
  "luminance": 0.02815
}

Semantic roles & 50–950 ramp

primary
#21276A
secondary
#9E9749
accent
#D04CDC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #21276A

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

Preview Lab → · Contrast checker → · Palette generator →

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