#25156D#25156D

#25156D is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.141 H 281.2°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#25156D
RGBrgb(37, 21, 109)
HSLhsl(251, 68%, 25%)
HSVhsv(251, 81%, 43%)
CMYKcmyk(66.1%, 80.7%, 0%, 57.3%)
CIE-LABlab(15.66, 34.35, -47.91)
CIE-LCHlch(15.66, 58.96, 305.64°)
OKLaboklab(28.82% 0.0274 -0.1382)
OKLCHoklch(28.82% 0.141 281.2)
XYZxyz(3.7906, 2.0335, 14.6578)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25156D #5D6D15
analogous
#15316D #25156D #51156D
triadic
#25156D #6D2515 #156D25
tetradic
#25156D #6D1531 #5D6D15 #156D51
square
#25156D #6D1531 #5D6D15 #156D51
split-complementary
#25156D #6D5115 #316D15
monochromatic
#09051A #140B3A #25156D #361FA0 #4829D4

Accessibility & contrast

On white

14.93
#25156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#25156D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25156D
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25156D#FFFFFF#000000##FFFFFF
##25156D1.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6F
Deuteranopia (green-blind)
#00246B
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #25156d;
/* rgb */ color: rgb(37, 21, 109);
/* oklch */ color: oklch(28.8% 0.141 281.2);
Tailwind
colors: {
  custom: {
    50: '#6a5598',
    500: '#25156d',
    950: '#000000',
  },
}
SCSS
$custom: #25156d;
$custom-light: #6a5598;
$custom-dark: #000000;
JSON
{
  "hex": "#25156d",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 250.909,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28821,
    "c": 0.14093,
    "h": 281.2
  },
  "luminance": 0.02034
}

Semantic roles & 50–950 ramp

primary
#25156D
secondary
#90A33A
accent
#EB3DCB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #25156D

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

Preview Lab → · Contrast checker → · Palette generator →

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