#21256E#21256E

#21256E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.2% C 0.124 H 274.2°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#21256E
RGBrgb(33, 37, 110)
HSLhsl(237, 54%, 28%)
HSVhsv(237, 70%, 43%)
CMYKcmyk(70%, 66.4%, 0%, 56.9%)
CIE-LABlab(19.11, 24.07, -42.92)
CIE-LCHlch(19.11, 49.21, 299.28°)
OKLaboklab(31.24% 0.0092 -0.1238)
OKLCHoklch(31.24% 0.124 274.2)
XYZxyz(4.1023, 2.7719, 15.0677)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21256E #6E6A21
analogous
#214B6E #21256E #43216E
triadic
#21256E #6E2125 #256E21
tetradic
#21256E #6E214B #6E6A21 #216E43
square
#21256E #6E214B #6E6A21 #216E43
split-complementary
#21256E #6E4321 #4B6E21
monochromatic
#070818 #13153F #21256E #2F359D #434AC7

Accessibility & contrast

On white

13.51
#21256E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#21256E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21256E
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21256E#FFFFFF#000000##FFFFFF
##21256E1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#002B6D
Tritanopia (blue-blind)
#003845
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #21256e;
/* rgb */ color: rgb(33, 37, 110);
/* oklch */ color: oklch(31.2% 0.124 274.2);
Tailwind
colors: {
  custom: {
    50: '#675f98',
    500: '#21256e',
    950: '#000000',
  },
}
SCSS
$custom: #21256e;
$custom-light: #675f98;
$custom-dark: #000000;
JSON
{
  "hex": "#21256e",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 110
  },
  "hsl": {
    "h": 236.883,
    "s": 53.846,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31239,
    "c": 0.12413,
    "h": 274.2
  },
  "luminance": 0.02772
}

Semantic roles & 50–950 ramp

primary
#21256E
secondary
#A29D49
accent
#D64BDD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #21256E

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

Preview Lab → · Contrast checker → · Palette generator →

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