#25156B#25156B

#25156B is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.138 H 281.7°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#25156B
RGBrgb(37, 21, 107)
HSLhsl(251, 67%, 25%)
HSVhsv(251, 80%, 42%)
CMYKcmyk(65.4%, 80.4%, 0%, 58%)
CIE-LABlab(15.44, 33.70, -46.97)
CIE-LCHlch(15.44, 57.81, 305.66°)
OKLaboklab(28.6% 0.028 -0.1355)
OKLCHoklch(28.6% 0.138 281.7)
XYZxyz(3.6841, 1.9909, 14.0972)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25156B #5B6B15
analogous
#15306B #25156B #50156B
triadic
#25156B #6B2515 #156B25
tetradic
#25156B #6B1530 #5B6B15 #156B50
square
#25156B #6B1530 #5B6B15 #156B50
split-complementary
#25156B #6B5015 #306B15
monochromatic
#09051A #130B38 #25156B #371F9E #4829D1

Accessibility & contrast

On white

15.02
#25156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#25156B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25156B
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25156B#FFFFFF#000000##FFFFFF
##25156B1.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296D
Deuteranopia (green-blind)
#002369
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #25156b;
/* rgb */ color: rgb(37, 21, 107);
/* oklch */ color: oklch(28.6% 0.138 281.7);
Tailwind
colors: {
  custom: {
    50: '#6a5596',
    500: '#25156b',
    950: '#000000',
  },
}
SCSS
$custom: #25156b;
$custom-light: #6a5596;
$custom-dark: #000000;
JSON
{
  "hex": "#25156b",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 251.163,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28598,
    "c": 0.13836,
    "h": 281.7
  },
  "luminance": 0.01991
}

Semantic roles & 50–950 ramp

primary
#25156B
secondary
#8EA23A
accent
#EA3ECA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #25156B

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

Preview Lab → · Contrast checker → · Palette generator →

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