#251575#251575

#251575 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.151 H 279.5°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#251575
RGBrgb(37, 21, 117)
HSLhsl(250, 70%, 27%)
HSVhsv(250, 82%, 46%)
CMYKcmyk(68.4%, 82.1%, 0%, 54.1%)
CIE-LABlab(16.57, 36.95, -51.60)
CIE-LCHlch(16.57, 63.47, 305.61°)
OKLaboklab(29.73% 0.025 -0.149)
OKLCHoklch(29.73% 0.151 279.5)
XYZxyz(4.2410, 2.2137, 17.0300)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#251575 #657515
analogous
#153575 #251575 #551575
triadic
#251575 #752515 #157525
tetradic
#251575 #751535 #657515 #157555
square
#251575 #751535 #657515 #157555
split-complementary
#251575 #755515 #357515
monochromatic
#08051A #150C41 #251575 #351EA9 #482BD9

Accessibility & contrast

On white

14.56
#251575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#251575 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #251575
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##251575#FFFFFF#000000##FFFFFF
##2515751.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C78
Deuteranopia (green-blind)
#002573
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #251575;
/* rgb */ color: rgb(37, 21, 117);
/* oklch */ color: oklch(29.7% 0.151 279.5);
Tailwind
colors: {
  custom: {
    50: '#6c559e',
    500: '#251575',
    950: '#000000',
  },
}
SCSS
$custom: #251575;
$custom-light: #6c559e;
$custom-dark: #000000;
JSON
{
  "hex": "#251575",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 117
  },
  "hsl": {
    "h": 250,
    "s": 69.565,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29725,
    "c": 0.15107,
    "h": 279.5
  },
  "luminance": 0.02214
}

Semantic roles & 50–950 ramp

primary
#251575
secondary
#98AB3B
accent
#EC3BCF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #251575

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

Preview Lab → · Contrast checker → · Palette generator →

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