#25175A#25175A

#25175A is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.113 H 285.6°. Best body text is #FFFFFF at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#25175A
RGBrgb(37, 23, 90)
HSLhsl(253, 59%, 22%)
HSVhsv(253, 74%, 35%)
CMYKcmyk(58.9%, 74.4%, 0%, 64.7%)
CIE-LABlab(14.08, 26.83, -37.93)
CIE-LCHlch(14.08, 46.46, 305.27°)
OKLaboklab(27.1% 0.0305 -0.109)
OKLCHoklch(27.1% 0.113 285.6)
XYZxyz(2.9143, 1.7441, 9.8540)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25175A #4C5A17
analogous
#172B5A #25175A #47175A
triadic
#25175A #5A2517 #175A25
tetradic
#25175A #5A172B #4C5A17 #175A47
square
#25175A #5A172B #4C5A17 #175A47
split-complementary
#25175A #5A4717 #2B5A17
monochromatic
#0A0618 #110B29 #25175A #39238B #4D30BB

Accessibility & contrast

On white

15.57
#25175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #25175A
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25175A#FFFFFF#000000##FFFFFF
##25175A1.0015.571.3515.57
#FFFFFF15.571.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#002259
Tritanopia (blue-blind)
#0E2836
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #25175a;
/* rgb */ color: rgb(37, 23, 90);
/* oklch */ color: oklch(27.1% 0.113 285.6);
Tailwind
colors: {
  custom: {
    50: '#665589',
    500: '#25175a',
    950: '#000000',
  },
}
SCSS
$custom: #25175a;
$custom-light: #665589;
$custom-dark: #000000;
JSON
{
  "hex": "#25175a",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 252.537,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27098,
    "c": 0.11324,
    "h": 285.6
  },
  "luminance": 0.01744
}

Semantic roles & 50–950 ramp

primary
#25175A
secondary
#7F913C
accent
#E245C2
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #25175A

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

Preview Lab → · Contrast checker → · Palette generator →

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