#25174F#25174F

#25174F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.0% C 0.098 H 289.3°. Best body text is #FFFFFF at 15.98:1 contrast (WCAG AA passes).

Color values

HEX#25174F
RGBrgb(37, 23, 79)
HSLhsl(255, 55%, 20%)
HSVhsv(255, 71%, 31%)
CMYKcmyk(53.2%, 70.9%, 0%, 69%)
CIE-LABlab(13.05, 23.09, -32.15)
CIE-LCHlch(13.05, 39.58, 305.69°)
OKLaboklab(26.03% 0.0323 -0.0921)
OKLCHoklch(26.03% 0.098 289.3)
XYZxyz(2.4802, 1.5705, 7.5681)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25174F #414F17
analogous
#17254F #25174F #41174F
triadic
#25174F #4F2517 #174F25
tetradic
#25174F #4F1725 #414F17 #174F41
square
#25174F #4F1725 #414F17 #174F41
split-complementary
#25174F #4F4117 #254F17
monochromatic
#0B0718 #0F0920 #25174F #3B257E #5133AE

Accessibility & contrast

On white

15.98
#25174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#25174F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25174F
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25174F#FFFFFF#000000##FFFFFF
##25174F1.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#00204E
Tritanopia (blue-blind)
#172430
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #25174f;
/* rgb */ color: rgb(37, 23, 79);
/* oklch */ color: oklch(26.0% 0.098 289.3);
Tailwind
colors: {
  custom: {
    50: '#645581',
    500: '#25174f',
    950: '#000000',
  },
}
SCSS
$custom: #25174f;
$custom-light: #645581;
$custom-dark: #000000;
JSON
{
  "hex": "#25174f",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 255,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.26033,
    "c": 0.09757,
    "h": 289.3
  },
  "luminance": 0.01571
}

Semantic roles & 50–950 ramp

primary
#25174F
secondary
#74863C
accent
#DE4AB9
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #25174F

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

Preview Lab → · Contrast checker → · Palette generator →

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