#25155D#25155D

#25155D is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.120 H 285.4°. Best body text is #FFFFFF at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#25155D
RGBrgb(37, 21, 93)
HSLhsl(253, 63%, 22%)
HSVhsv(253, 77%, 36%)
CMYKcmyk(60.2%, 77.4%, 0%, 63.5%)
CIE-LABlab(13.94, 29.06, -40.17)
CIE-LCHlch(13.94, 49.58, 305.89°)
OKLaboklab(27.09% 0.0318 -0.1156)
OKLCHoklch(27.09% 0.12 285.4)
XYZxyz(3.0063, 1.7198, 10.5273)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25155D #4D5D15
analogous
#15295D #25155D #49155D
triadic
#25155D #5D2515 #155D25
tetradic
#25155D #5D1529 #4D5D15 #155D49
square
#25155D #5D1529 #4D5D15 #155D49
split-complementary
#25155D #5D4915 #295D15
monochromatic
#0A0619 #110A2B #25155D #39208F #4D2CC1

Accessibility & contrast

On white

15.62
#25155D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #25155D
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25155D#FFFFFF#000000##FFFFFF
##25155D1.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#00215C
Tritanopia (blue-blind)
#0A2837
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #25155d;
/* rgb */ color: rgb(37, 21, 93);
/* oklch */ color: oklch(27.1% 0.120 285.4);
Tailwind
colors: {
  custom: {
    50: '#67548c',
    500: '#25155d',
    950: '#000000',
  },
}
SCSS
$custom: #25155d;
$custom-light: #67548c;
$custom-dark: #000000;
JSON
{
  "hex": "#25155d",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 93
  },
  "hsl": {
    "h": 253.333,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.2709,
    "c": 0.11989,
    "h": 285.4
  },
  "luminance": 0.0172
}

Semantic roles & 50–950 ramp

primary
#25155D
secondary
#809439
accent
#E642C2
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #25155D

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

Preview Lab → · Contrast checker → · Palette generator →

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