#21256A#21256A

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

Color values

HEX#21256A
RGBrgb(33, 37, 106)
HSLhsl(237, 53%, 27%)
HSVhsv(237, 69%, 42%)
CMYKcmyk(68.9%, 65.1%, 0%, 58.4%)
CIE-LABlab(18.74, 22.55, -40.92)
CIE-LCHlch(18.74, 46.72, 298.86°)
OKLaboklab(30.86% 0.0094 -0.1179)
OKLCHoklch(30.86% 0.118 274.5)
XYZxyz(3.8894, 2.6867, 13.9465)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21256A #6A6621
analogous
#214A6A #21256A #41216A
triadic
#21256A #6A2125 #256A21
tetradic
#21256A #6A214A #6A6621 #216A41
square
#21256A #6A214A #6A6621 #216A41
split-complementary
#21256A #6A4121 #4A6A21
monochromatic
#070817 #12153B #21256A #303599 #4149C4

Accessibility & contrast

On white

13.66
#21256A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21256A
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21256A#FFFFFF#000000##FFFFFF
##21256A1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#002A69
Tritanopia (blue-blind)
#003643
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #21256a;
/* rgb */ color: rgb(33, 37, 106);
/* oklch */ color: oklch(30.9% 0.118 274.5);
Tailwind
colors: {
  custom: {
    50: '#665f95',
    500: '#21256a',
    950: '#000000',
  },
}
SCSS
$custom: #21256a;
$custom-light: #665f95;
$custom-dark: #000000;
JSON
{
  "hex": "#21256a",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 106
  },
  "hsl": {
    "h": 236.712,
    "s": 52.518,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30859,
    "c": 0.11828,
    "h": 274.5
  },
  "luminance": 0.02687
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21256A

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

Preview Lab → · Contrast checker → · Palette generator →

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