#251572#251572

#251572 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.147 H 280.1°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#251572
RGBrgb(37, 21, 114)
HSLhsl(250, 69%, 26%)
HSVhsv(250, 82%, 45%)
CMYKcmyk(67.5%, 81.6%, 0%, 55.3%)
CIE-LABlab(16.23, 35.98, -50.23)
CIE-LCHlch(16.23, 61.79, 305.61°)
OKLaboklab(29.38% 0.0259 -0.145)
OKLCHoklch(29.38% 0.147 280.1)
XYZxyz(4.0674, 2.1442, 16.1159)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251572 #627215
analogous
#153472 #251572 #541572
triadic
#251572 #722515 #157225
tetradic
#251572 #721534 #627215 #157254
square
#251572 #721534 #627215 #157254
split-complementary
#251572 #725415 #347215
monochromatic
#08051A #140B3E #251572 #361FA6 #482AD8

Accessibility & contrast

On white

14.70
#251572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#251572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251572
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251572#FFFFFF#000000##FFFFFF
##2515721.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002570
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #251572;
/* rgb */ color: rgb(37, 21, 114);
/* oklch */ color: oklch(29.4% 0.147 280.1);
Tailwind
colors: {
  custom: {
    50: '#6c559c',
    500: '#251572',
    950: '#000000',
  },
}
SCSS
$custom: #251572;
$custom-light: #6c559c;
$custom-dark: #000000;
JSON
{
  "hex": "#251572",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 250.323,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29383,
    "c": 0.1473,
    "h": 280.1
  },
  "luminance": 0.02145
}

Semantic roles & 50–950 ramp

primary
#251572
secondary
#95A83B
accent
#EC3CCE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #251572

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

Preview Lab → · Contrast checker → · Palette generator →

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