#25185A#25185A

#25185A is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.112 H 285.3°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#25185A
RGBrgb(37, 24, 90)
HSLhsl(252, 58%, 22%)
HSVhsv(252, 73%, 35%)
CMYKcmyk(58.9%, 73.3%, 0%, 64.7%)
CIE-LABlab(14.31, 26.19, -37.55)
CIE-LCHlch(14.31, 45.78, 304.90°)
OKLaboklab(27.26% 0.0295 -0.1079)
OKLCHoklch(27.26% 0.112 285.3)
XYZxyz(2.9345, 1.7846, 9.8607)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25185A #4D5A18
analogous
#182C5A #25185A #46185A
triadic
#25185A #5A2518 #185A25
tetradic
#25185A #5A182C #4D5A18 #185A46
square
#25185A #5A182C #4D5A18 #185A46
split-complementary
#25185A #5A4618 #2C5A18
monochromatic
#0A0618 #110B2A #25185A #39258A #4D32BB

Accessibility & contrast

On white

15.48
#25185A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #25185A
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25185A#FFFFFF#000000##FFFFFF
##25185A1.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #25185a;
/* rgb */ color: rgb(37, 24, 90);
/* oklch */ color: oklch(27.3% 0.112 285.3);
Tailwind
colors: {
  custom: {
    50: '#665689',
    500: '#25185a',
    950: '#000000',
  },
}
SCSS
$custom: #25185a;
$custom-light: #665689;
$custom-dark: #000000;
JSON
{
  "hex": "#25185a",
  "rgb": {
    "r": 37,
    "g": 24,
    "b": 90
  },
  "hsl": {
    "h": 251.818,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27263,
    "c": 0.1119,
    "h": 285.3
  },
  "luminance": 0.01785
}

Semantic roles & 50–950 ramp

primary
#25185A
secondary
#80913D
accent
#E147C3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #25185A

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

Preview Lab → · Contrast checker → · Palette generator →

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