#25155B#25155B

#25155B is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.117 H 286.0°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#25155B
RGBrgb(37, 21, 91)
HSLhsl(254, 63%, 22%)
HSVhsv(254, 77%, 36%)
CMYKcmyk(59.3%, 76.9%, 0%, 64.3%)
CIE-LABlab(13.74, 28.40, -39.16)
CIE-LCHlch(13.74, 48.38, 305.95°)
OKLaboklab(26.88% 0.0322 -0.1127)
OKLCHoklch(26.88% 0.117 286)
XYZxyz(2.9189, 1.6848, 10.0669)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25155B #4B5B15
analogous
#15285B #25155B #48155B
triadic
#25155B #5B2515 #155B25
tetradic
#25155B #5B1528 #4B5B15 #155B48
square
#25155B #5B1528 #4B5B15 #155B48
split-complementary
#25155B #5B4815 #285B15
monochromatic
#0A0619 #110A29 #25155B #39208D #4D2CBE

Accessibility & contrast

On white

15.71
#25155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#25155B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25155B
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25155B#FFFFFF#000000##FFFFFF
##25155B1.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#00215A
Tritanopia (blue-blind)
#0D2836
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #25155b;
/* rgb */ color: rgb(37, 21, 91);
/* oklch */ color: oklch(26.9% 0.117 286.0);
Tailwind
colors: {
  custom: {
    50: '#67548a',
    500: '#25155b',
    950: '#000000',
  },
}
SCSS
$custom: #25155b;
$custom-light: #67548a;
$custom-dark: #000000;
JSON
{
  "hex": "#25155b",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 253.714,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26882,
    "c": 0.11719,
    "h": 286
  },
  "luminance": 0.01685
}

Semantic roles & 50–950 ramp

primary
#25155B
secondary
#7E9239
accent
#E642C0
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #25155B

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

Preview Lab → · Contrast checker → · Palette generator →

#25155B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva