#21257F#21257F

#21257F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.148 H 272.9°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#21257F
RGBrgb(33, 37, 127)
HSLhsl(237, 59%, 31%)
HSVhsv(237, 74%, 50%)
CMYKcmyk(74%, 70.9%, 0%, 50.2%)
CIE-LABlab(20.74, 30.43, -51.12)
CIE-LCHlch(20.74, 59.50, 300.76°)
OKLaboklab(32.93% 0.0075 -0.1478)
OKLCHoklch(32.93% 0.148 272.9)
XYZxyz(5.1182, 3.1783, 20.4183)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21257F #7F7B21
analogous
#21547F #21257F #4C217F
triadic
#21257F #7F2125 #257F21
tetradic
#21257F #7F2154 #7F7B21 #217F4C
square
#21257F #7F2154 #7F7B21 #217F4C
split-complementary
#21257F #7F4C21 #547F21
monochromatic
#08091E #14174E #21257F #2E33B0 #4A50D0

Accessibility & contrast

On white

12.84
#21257F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#21257F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21257F
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21257F#FFFFFF#000000##FFFFFF
##21257F1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #21257f;
/* rgb */ color: rgb(33, 37, 127);
/* oklch */ color: oklch(32.9% 0.148 272.9);
Tailwind
colors: {
  custom: {
    50: '#6c60a5',
    500: '#21257f',
    950: '#000000',
  },
}
SCSS
$custom: #21257f;
$custom-light: #6c60a5;
$custom-dark: #000000;
JSON
{
  "hex": "#21257f",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 127
  },
  "hsl": {
    "h": 237.447,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32934,
    "c": 0.148,
    "h": 272.9
  },
  "luminance": 0.03179
}

Semantic roles & 50–950 ramp

primary
#21257F
secondary
#B2AD4A
accent
#DB46E2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #21257F

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

Preview Lab → · Contrast checker → · Palette generator →

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