#25175B#25175B

#25175B is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.115 H 285.3°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#25175B
RGBrgb(37, 23, 91)
HSLhsl(252, 60%, 22%)
HSVhsv(252, 75%, 36%)
CMYKcmyk(59.3%, 74.7%, 0%, 64.3%)
CIE-LABlab(14.18, 27.17, -38.44)
CIE-LCHlch(14.18, 47.07, 305.25°)
OKLaboklab(27.2% 0.0303 -0.1105)
OKLCHoklch(27.2% 0.115 285.3)
XYZxyz(2.9571, 1.7613, 10.0796)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25175B #4D5B17
analogous
#172B5B #25175B #47175B
triadic
#25175B #5B2517 #175B25
tetradic
#25175B #5B172B #4D5B17 #175B47
square
#25175B #5B172B #4D5B17 #175B47
split-complementary
#25175B #5B4717 #2B5B17
monochromatic
#0A0618 #110B2A #25175B #39238C #4D30BD

Accessibility & contrast

On white

15.53
#25175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#25175B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25175B
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25175B#FFFFFF#000000##FFFFFF
##25175B1.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00225A
Tritanopia (blue-blind)
#0D2937
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #25175b;
/* rgb */ color: rgb(37, 23, 91);
/* oklch */ color: oklch(27.2% 0.115 285.3);
Tailwind
colors: {
  custom: {
    50: '#66558a',
    500: '#25175b',
    950: '#000000',
  },
}
SCSS
$custom: #25175b;
$custom-light: #66558a;
$custom-dark: #000000;
JSON
{
  "hex": "#25175b",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 252.353,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27198,
    "c": 0.11463,
    "h": 285.3
  },
  "luminance": 0.01761
}

Semantic roles & 50–950 ramp

primary
#25175B
secondary
#80923C
accent
#E345C2
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #25175B

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

Preview Lab → · Contrast checker → · Palette generator →

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