#25155F#25155F

#25155F is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.3% C 0.123 H 284.8°. Best body text is #FFFFFF at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#25155F
RGBrgb(37, 21, 95)
HSLhsl(253, 64%, 23%)
HSVhsv(253, 78%, 37%)
CMYKcmyk(61.1%, 77.9%, 0%, 62.7%)
CIE-LABlab(14.15, 29.73, -41.17)
CIE-LCHlch(14.15, 50.78, 305.84°)
OKLaboklab(27.3% 0.0313 -0.1185)
OKLCHoklch(27.3% 0.123 284.8)
XYZxyz(3.0960, 1.7557, 11.0000)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25155F #4F5F15
analogous
#152A5F #25155F #4A155F
triadic
#25155F #5F2515 #155F25
tetradic
#25155F #5F152A #4F5F15 #155F4A
square
#25155F #5F152A #4F5F15 #155F4A
split-complementary
#25155F #5F4A15 #2A5F15
monochromatic
#0A0619 #110A2D #25155F #392091 #4C2BC3

Accessibility & contrast

On white

15.54
#25155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#25155F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25155F
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25155F#FFFFFF#000000##FFFFFF
##25155F1.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00225E
Tritanopia (blue-blind)
#072938
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #25155f;
/* rgb */ color: rgb(37, 21, 95);
/* oklch */ color: oklch(27.3% 0.123 284.8);
Tailwind
colors: {
  custom: {
    50: '#67548d',
    500: '#25155f',
    950: '#000000',
  },
}
SCSS
$custom: #25155f;
$custom-light: #67548d;
$custom-dark: #000000;
JSON
{
  "hex": "#25155f",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 252.973,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27299,
    "c": 0.12258,
    "h": 284.8
  },
  "luminance": 0.01756
}

Semantic roles & 50–950 ramp

primary
#25155F
secondary
#82963A
accent
#E741C3
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #25155F

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

Preview Lab → · Contrast checker → · Palette generator →

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