#21255D#21255D

#21255D is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.7% C 0.099 H 275.5°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#21255D
RGBrgb(33, 37, 93)
HSLhsl(236, 48%, 25%)
HSVhsv(236, 65%, 36%)
CMYKcmyk(64.5%, 60.2%, 0%, 63.5%)
CIE-LABlab(17.63, 17.57, -34.17)
CIE-LCHlch(17.63, 38.42, 297.20°)
OKLaboklab(29.68% 0.0095 -0.0981)
OKLCHoklch(29.68% 0.099 275.5)
XYZxyz(3.2639, 2.4365, 10.6521)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21255D #5D5921
analogous
#21435D #21255D #3B215D
triadic
#21255D #5D2125 #255D21
tetradic
#21255D #5D2143 #5D5921 #215D3B
square
#21255D #5D2143 #5D5921 #215D3B
split-complementary
#21255D #5D3B21 #435D21
monochromatic
#080917 #111330 #21255D #31378A #4149B7

Accessibility & contrast

On white

14.12
#21255D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#21255D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21255D
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21255D#FFFFFF#000000##FFFFFF
##21255D1.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E5F
Deuteranopia (green-blind)
#00295C
Tritanopia (blue-blind)
#00323D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #21255d;
/* rgb */ color: rgb(33, 37, 93);
/* oklch */ color: oklch(29.7% 0.099 275.5);
Tailwind
colors: {
  custom: {
    50: '#635f8b',
    500: '#21255d',
    950: '#000000',
  },
}
SCSS
$custom: #21255d;
$custom-light: #635f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#21255d",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 93
  },
  "hsl": {
    "h": 236,
    "s": 47.619,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29684,
    "c": 0.09855,
    "h": 275.5
  },
  "luminance": 0.02437
}

Semantic roles & 50–950 ramp

primary
#21255D
secondary
#918C49
accent
#CE51D7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #21255D

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

Preview Lab → · Contrast checker → · Palette generator →

#21255D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva