#21276B#21276B

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

Color values

HEX#21276B
RGBrgb(33, 39, 107)
HSLhsl(235, 53%, 27%)
HSVhsv(235, 69%, 42%)
CMYKcmyk(69.2%, 63.6%, 0%, 58%)
CIE-LABlab(19.37, 21.53, -40.54)
CIE-LCHlch(19.37, 45.90, 297.97°)
OKLaboklab(31.35% 0.0075 -0.1168)
OKLCHoklch(31.35% 0.117 273.7)
XYZxyz(4.0057, 2.8356, 14.2433)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21276B #6B6521
analogous
#214C6B #21276B #40216B
triadic
#21276B #6B2127 #276B21
tetradic
#21276B #6B214C #6B6521 #216B40
square
#21276B #6B214C #6B6521 #216B40
split-complementary
#21276B #6B4021 #4C6B21
monochromatic
#070917 #13163C #21276B #2F389A #424CC5

Accessibility & contrast

On white

13.40
#21276B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21276B
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21276B#FFFFFF#000000##FFFFFF
##21276B1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#002C6A
Tritanopia (blue-blind)
#003845
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #21276b;
/* rgb */ color: rgb(33, 39, 107);
/* oklch */ color: oklch(31.4% 0.117 273.7);
Tailwind
colors: {
  custom: {
    50: '#666196',
    500: '#21276b',
    950: '#000000',
  },
}
SCSS
$custom: #21276b;
$custom-light: #666196;
$custom-dark: #000000;
JSON
{
  "hex": "#21276b",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 107
  },
  "hsl": {
    "h": 235.135,
    "s": 52.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31351,
    "c": 0.11702,
    "h": 273.7
  },
  "luminance": 0.02836
}

Semantic roles & 50–950 ramp

primary
#21276B
secondary
#9F9849
accent
#D14CDC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #21276B

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

Preview Lab → · Contrast checker → · Palette generator →

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