#21257A#21257A

#21257A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.4% C 0.141 H 273.3°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#21257A
RGBrgb(33, 37, 122)
HSLhsl(237, 57%, 30%)
HSVhsv(237, 73%, 48%)
CMYKcmyk(73%, 69.7%, 0%, 52.2%)
CIE-LABlab(20.25, 28.58, -48.76)
CIE-LCHlch(20.25, 56.52, 300.38°)
OKLaboklab(32.42% 0.0081 -0.1409)
OKLCHoklch(32.42% 0.141 273.3)
XYZxyz(4.8004, 3.0511, 18.7445)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21257A #7A7621
analogous
#21527A #21257A #49217A
triadic
#21257A #7A2125 #257A21
tetradic
#21257A #7A2152 #7A7621 #217A49
square
#21257A #7A2152 #7A7621 #217A49
split-complementary
#21257A #7A4921 #527A21
monochromatic
#07081A #14164A #21257A #2E34AA #484ECD

Accessibility & contrast

On white

13.04
#21257A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#21257A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21257A
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21257A#FFFFFF#000000##FFFFFF
##21257A1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#002D78
Tritanopia (blue-blind)
#003C4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #21257a;
/* rgb */ color: rgb(33, 37, 122);
/* oklch */ color: oklch(32.4% 0.141 273.3);
Tailwind
colors: {
  custom: {
    50: '#6a60a1',
    500: '#21257a',
    950: '#000000',
  },
}
SCSS
$custom: #21257a;
$custom-light: #6a60a1;
$custom-dark: #000000;
JSON
{
  "hex": "#21257a",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 122
  },
  "hsl": {
    "h": 237.303,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32423,
    "c": 0.14114,
    "h": 273.3
  },
  "luminance": 0.03052
}

Semantic roles & 50–950 ramp

primary
#21257A
secondary
#ADA94A
accent
#DA47E1
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #21257A

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

Preview Lab → · Contrast checker → · Palette generator →

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