#251571#251571

#251571 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.146 H 280.3°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#251571
RGBrgb(37, 21, 113)
HSLhsl(250, 69%, 26%)
HSVhsv(250, 81%, 44%)
CMYKcmyk(67.3%, 81.4%, 0%, 55.7%)
CIE-LABlab(16.11, 35.66, -49.77)
CIE-LCHlch(16.11, 61.23, 305.62°)
OKLaboklab(29.27% 0.0262 -0.1437)
OKLCHoklch(29.27% 0.146 280.3)
XYZxyz(4.0108, 2.1216, 15.8177)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251571 #617115
analogous
#153371 #251571 #531571
triadic
#251571 #712515 #157125
tetradic
#251571 #711533 #617115 #157153
square
#251571 #711533 #617115 #157153
split-complementary
#251571 #715315 #337115
monochromatic
#08051A #140B3D #251571 #361FA5 #4729D7

Accessibility & contrast

On white

14.74
#251571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#251571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251571
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251571#FFFFFF#000000##FFFFFF
##2515711.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00246F
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #251571;
/* rgb */ color: rgb(37, 21, 113);
/* oklch */ color: oklch(29.3% 0.146 280.3);
Tailwind
colors: {
  custom: {
    50: '#6b559b',
    500: '#251571',
    950: '#000000',
  },
}
SCSS
$custom: #251571;
$custom-light: #6b559b;
$custom-dark: #000000;
JSON
{
  "hex": "#251571",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 250.435,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.2927,
    "c": 0.14603,
    "h": 280.3
  },
  "luminance": 0.02122
}

Semantic roles & 50–950 ramp

primary
#251571
secondary
#94A73B
accent
#EB3CCD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #251571

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

Preview Lab → · Contrast checker → · Palette generator →

#251571 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva