#25174B#25174B

#25174B is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.092 H 290.9°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#25174B
RGBrgb(37, 23, 75)
HSLhsl(256, 53%, 19%)
HSVhsv(256, 69%, 29%)
CMYKcmyk(50.7%, 69.3%, 0%, 70.6%)
CIE-LABlab(12.70, 21.74, -29.97)
CIE-LCHlch(12.70, 37.02, 305.96°)
OKLaboklab(25.67% 0.0327 -0.0857)
OKLCHoklch(25.67% 0.092 290.9)
XYZxyz(2.3390, 1.5140, 6.8242)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25174B #3D4B17
analogous
#17234B #25174B #3F174B
triadic
#25174B #4B2517 #174B25
tetradic
#25174B #4B1723 #3D4B17 #174B3F
square
#25174B #4B1723 #3D4B17 #174B3F
split-complementary
#25174B #4B3F17 #234B17
monochromatic
#0C0717 #0E091C #25174B #3C257A #5334A9

Accessibility & contrast

On white

16.12
#25174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#25174B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25174B
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25174B#FFFFFF#000000##FFFFFF
##25174B1.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224D
Deuteranopia (green-blind)
#00204A
Tritanopia (blue-blind)
#19232E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #25174b;
/* rgb */ color: rgb(37, 23, 75);
/* oklch */ color: oklch(25.7% 0.092 290.9);
Tailwind
colors: {
  custom: {
    50: '#63557e',
    500: '#25174b',
    950: '#000000',
  },
}
SCSS
$custom: #25174b;
$custom-light: #63557e;
$custom-dark: #000000;
JSON
{
  "hex": "#25174b",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 256.154,
    "s": 53.061,
    "l": 19.216
  },
  "oklch": {
    "l": 0.25666,
    "c": 0.0917,
    "h": 290.9
  },
  "luminance": 0.01514
}

Semantic roles & 50–950 ramp

primary
#25174B
secondary
#6F823C
accent
#DC4BB5
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05030A
muted
#7A787C

Preview Lab

Preview with #25174B

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

Preview Lab → · Contrast checker → · Palette generator →

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