#25176A#25176A

#25176A is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.135 H 281.5°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#25176A
RGBrgb(37, 23, 106)
HSLhsl(250, 64%, 25%)
HSVhsv(250, 78%, 42%)
CMYKcmyk(65.1%, 78.3%, 0%, 58.4%)
CIE-LABlab(15.73, 32.23, -45.84)
CIE-LCHlch(15.73, 56.04, 305.11°)
OKLaboklab(28.77% 0.0268 -0.1322)
OKLCHoklch(28.77% 0.135 281.5)
XYZxyz(3.6700, 2.0464, 13.8345)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25176A #5C6A17
analogous
#17336A #25176A #4E176A
triadic
#25176A #6A2517 #176A25
tetradic
#25176A #6A1733 #5C6A17 #176A4E
square
#25176A #6A1733 #5C6A17 #176A4E
split-complementary
#25176A #6A4E17 #336A17
monochromatic
#090519 #130C38 #25176A #37229C #482DCF

Accessibility & contrast

On white

14.90
#25176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#25176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25176A
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25176A#FFFFFF#000000##FFFFFF
##25176A1.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002468
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #25176a;
/* rgb */ color: rgb(37, 23, 106);
/* oklch */ color: oklch(28.8% 0.135 281.5);
Tailwind
colors: {
  custom: {
    50: '#6a5696',
    500: '#25176a',
    950: '#000000',
  },
}
SCSS
$custom: #25176a;
$custom-light: #6a5696;
$custom-dark: #000000;
JSON
{
  "hex": "#25176a",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 250.12,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28769,
    "c": 0.1349,
    "h": 281.5
  },
  "luminance": 0.02047
}

Semantic roles & 50–950 ramp

primary
#25176A
secondary
#8FA03D
accent
#E740CB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #25176A

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

Preview Lab → · Contrast checker → · Palette generator →

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