#21256F#21256F

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

Color values

HEX#21256F
RGBrgb(33, 37, 111)
HSLhsl(237, 54%, 28%)
HSVhsv(237, 70%, 44%)
CMYKcmyk(70.3%, 66.7%, 0%, 56.5%)
CIE-LABlab(19.20, 24.45, -43.42)
CIE-LCHlch(19.20, 49.83, 299.38°)
OKLaboklab(31.34% 0.0091 -0.1252)
OKLCHoklch(31.34% 0.126 274.2)
XYZxyz(4.1571, 2.7938, 15.3560)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21256F #6F6B21
analogous
#214C6F #21256F #44216F
triadic
#21256F #6F2125 #256F21
tetradic
#21256F #6F214C #6F6B21 #216F44
square
#21256F #6F214C #6F6B21 #216F44
split-complementary
#21256F #6F4421 #4C6F21
monochromatic
#070818 #131540 #21256F #2F359E #434AC7

Accessibility & contrast

On white

13.47
#21256F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#21256F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21256F
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21256F#FFFFFF#000000##FFFFFF
##21256F1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#002B6E
Tritanopia (blue-blind)
#003846
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #21256f;
/* rgb */ color: rgb(33, 37, 111);
/* oklch */ color: oklch(31.3% 0.126 274.2);
Tailwind
colors: {
  custom: {
    50: '#685f99',
    500: '#21256f',
    950: '#000000',
  },
}
SCSS
$custom: #21256f;
$custom-light: #685f99;
$custom-dark: #000000;
JSON
{
  "hex": "#21256f",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 111
  },
  "hsl": {
    "h": 236.923,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31335,
    "c": 0.12558,
    "h": 274.2
  },
  "luminance": 0.02794
}

Semantic roles & 50–950 ramp

primary
#21256F
secondary
#A39E49
accent
#D64ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #21256F

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

Preview Lab → · Contrast checker → · Palette generator →

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