#21276F#21276F

#21276F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.7% C 0.123 H 273.4°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#21276F
RGBrgb(33, 39, 111)
HSLhsl(235, 54%, 28%)
HSVhsv(235, 70%, 44%)
CMYKcmyk(70.3%, 64.9%, 0%, 56.5%)
CIE-LABlab(19.73, 23.07, -42.55)
CIE-LCHlch(19.73, 48.40, 298.46°)
OKLaboklab(31.72% 0.0074 -0.1227)
OKLCHoklch(31.72% 0.123 273.4)
XYZxyz(4.2210, 2.9217, 15.3773)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21276F #6F6921
analogous
#214E6F #21276F #42216F
triadic
#21276F #6F2127 #276F21
tetradic
#21276F #6F214E #6F6921 #216F42
square
#21276F #6F214E #6F6921 #216F42
split-complementary
#21276F #6F4221 #4E6F21
monochromatic
#070818 #131640 #21276F #2F389E #434DC7

Accessibility & contrast

On white

13.25
#21276F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21276F
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21276F#FFFFFF#000000##FFFFFF
##21276F1.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#002C6E
Tritanopia (blue-blind)
#003947
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #21276f;
/* rgb */ color: rgb(33, 39, 111);
/* oklch */ color: oklch(31.7% 0.123 273.4);
Tailwind
colors: {
  custom: {
    50: '#676199',
    500: '#21276f',
    950: '#000000',
  },
}
SCSS
$custom: #21276f;
$custom-light: #676199;
$custom-dark: #000000;
JSON
{
  "hex": "#21276f",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 111
  },
  "hsl": {
    "h": 235.385,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31724,
    "c": 0.12292,
    "h": 273.4
  },
  "luminance": 0.02922
}

Semantic roles & 50–950 ramp

primary
#21276F
secondary
#A39C49
accent
#D24ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #21276F

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

Preview Lab → · Contrast checker → · Palette generator →

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