#25185B#25185B

#25185B is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.113 H 285.0°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#25185B
RGBrgb(37, 24, 91)
HSLhsl(252, 58%, 23%)
HSVhsv(252, 74%, 36%)
CMYKcmyk(59.3%, 73.6%, 0%, 64.3%)
CIE-LABlab(14.41, 26.54, -38.06)
CIE-LCHlch(14.41, 46.40, 304.88°)
OKLaboklab(27.36% 0.0293 -0.1094)
OKLCHoklch(27.36% 0.113 285)
XYZxyz(2.9773, 1.8017, 10.0864)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25185B #4E5B18
analogous
#182C5B #25185B #47185B
triadic
#25185B #5B2518 #185B25
tetradic
#25185B #5B182C #4E5B18 #185B47
square
#25185B #5B182C #4E5B18 #185B47
split-complementary
#25185B #5B4718 #2C5B18
monochromatic
#0A0618 #110B2B #25185B #39258B #4C32BC

Accessibility & contrast

On white

15.44
#25185B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#25185B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25185B
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25185B#FFFFFF#000000##FFFFFF
##25185B1.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #25185b;
/* rgb */ color: rgb(37, 24, 91);
/* oklch */ color: oklch(27.4% 0.113 285.0);
Tailwind
colors: {
  custom: {
    50: '#66568a',
    500: '#25185b',
    950: '#000000',
  },
}
SCSS
$custom: #25185b;
$custom-light: #66568a;
$custom-dark: #000000;
JSON
{
  "hex": "#25185b",
  "rgb": {
    "r": 37,
    "g": 24,
    "b": 91
  },
  "hsl": {
    "h": 251.642,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27362,
    "c": 0.11331,
    "h": 285
  },
  "luminance": 0.01802
}

Semantic roles & 50–950 ramp

primary
#25185B
secondary
#81923D
accent
#E146C3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #25185B

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

Preview Lab → · Contrast checker → · Palette generator →

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