#21256B#21256B

#21256B is a dark, moderate blue. Relative luminance 0.027; OKLCH L 31.0% C 0.120 H 274.5°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#21256B
RGBrgb(33, 37, 107)
HSLhsl(237, 53%, 27%)
HSVhsv(237, 69%, 42%)
CMYKcmyk(69.2%, 65.4%, 0%, 58%)
CIE-LABlab(18.83, 22.93, -41.42)
CIE-LCHlch(18.83, 47.34, 298.97°)
OKLaboklab(30.95% 0.0093 -0.1194)
OKLCHoklch(30.95% 0.12 274.5)
XYZxyz(3.9417, 2.7077, 14.2220)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21256B #6B6721
analogous
#214A6B #21256B #42216B
triadic
#21256B #6B2125 #256B21
tetradic
#21256B #6B214A #6B6721 #216B42
square
#21256B #6B214A #6B6721 #216B42
split-complementary
#21256B #6B4221 #4A6B21
monochromatic
#070817 #13153C #21256B #2F359A #4249C5

Accessibility & contrast

On white

13.62
#21256B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#21256B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21256B
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21256B#FFFFFF#000000##FFFFFF
##21256B1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316D
Deuteranopia (green-blind)
#002B6A
Tritanopia (blue-blind)
#003744
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #21256b;
/* rgb */ color: rgb(33, 37, 107);
/* oklch */ color: oklch(31.0% 0.120 274.5);
Tailwind
colors: {
  custom: {
    50: '#675f96',
    500: '#21256b',
    950: '#000000',
  },
}
SCSS
$custom: #21256b;
$custom-light: #675f96;
$custom-dark: #000000;
JSON
{
  "hex": "#21256b",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 107
  },
  "hsl": {
    "h": 236.757,
    "s": 52.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30953,
    "c": 0.11975,
    "h": 274.5
  },
  "luminance": 0.02708
}

Semantic roles & 50–950 ramp

primary
#21256B
secondary
#9F9A49
accent
#D44CDC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #21256B

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

Preview Lab → · Contrast checker → · Palette generator →

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