#25155A#25155A

#25155A is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.116 H 286.3°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#25155A
RGBrgb(37, 21, 90)
HSLhsl(254, 62%, 22%)
HSVhsv(254, 77%, 35%)
CMYKcmyk(58.9%, 76.7%, 0%, 64.7%)
CIE-LABlab(13.64, 28.06, -38.66)
CIE-LCHlch(13.64, 47.77, 305.98°)
OKLaboklab(26.78% 0.0325 -0.1112)
OKLCHoklch(26.78% 0.116 286.3)
XYZxyz(2.8760, 1.6677, 9.8412)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25155A #4A5A15
analogous
#15285A #25155A #48155A
triadic
#25155A #5A2515 #155A25
tetradic
#25155A #5A1528 #4A5A15 #155A48
square
#25155A #5A1528 #4A5A15 #155A48
split-complementary
#25155A #5A4815 #285A15
monochromatic
#0A0619 #110928 #25155A #39218C #4E2CBD

Accessibility & contrast

On white

15.75
#25155A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#25155A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25155A
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25155A#FFFFFF#000000##FFFFFF
##25155A1.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002159
Tritanopia (blue-blind)
#0E2736
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #25155a;
/* rgb */ color: rgb(37, 21, 90);
/* oklch */ color: oklch(26.8% 0.116 286.3);
Tailwind
colors: {
  custom: {
    50: '#665489',
    500: '#25155a',
    950: '#000000',
  },
}
SCSS
$custom: #25155a;
$custom-light: #665489;
$custom-dark: #000000;
JSON
{
  "hex": "#25155a",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 90
  },
  "hsl": {
    "h": 253.913,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26779,
    "c": 0.11582,
    "h": 286.3
  },
  "luminance": 0.01668
}

Semantic roles & 50–950 ramp

primary
#25155A
secondary
#7D9239
accent
#E543C0
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #25155A

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

Preview Lab → · Contrast checker → · Palette generator →

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