#25154C#25154C

#25154C is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.4% C 0.096 H 291.4°. Best body text is #FFFFFF at 16.28:1 contrast (WCAG AA passes).

Color values

HEX#25154C
RGBrgb(37, 21, 76)
HSLhsl(257, 57%, 19%)
HSVhsv(257, 72%, 30%)
CMYKcmyk(51.3%, 72.4%, 0%, 70.2%)
CIE-LABlab(12.30, 23.39, -31.31)
CIE-LCHlch(12.30, 39.08, 306.77°)
OKLaboklab(25.4% 0.0351 -0.0896)
OKLCHoklch(25.4% 0.096 291.4)
XYZxyz(2.3353, 1.4514, 6.9932)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25154C #3C4C15
analogous
#15214C #25154C #41154C
triadic
#25154C #4C2515 #154C25
tetradic
#25154C #4C1521 #3C4C15 #154C41
square
#25154C #4C1521 #3C4C15 #154C41
split-complementary
#25154C #4C4115 #214C15
monochromatic
#0C0718 #0E081C #25154C #3C227C #542FAC

Accessibility & contrast

On white

16.28
#25154C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#25154C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25154C
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25154C#FFFFFF#000000##FFFFFF
##25154C1.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214E
Deuteranopia (green-blind)
#001F4B
Tritanopia (blue-blind)
#19222E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #25154c;
/* rgb */ color: rgb(37, 21, 76);
/* oklch */ color: oklch(25.4% 0.096 291.4);
Tailwind
colors: {
  custom: {
    50: '#64537f',
    500: '#25154c',
    950: '#000000',
  },
}
SCSS
$custom: #25154c;
$custom-light: #64537f;
$custom-dark: #000000;
JSON
{
  "hex": "#25154c",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 76
  },
  "hsl": {
    "h": 257.455,
    "s": 56.701,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25403,
    "c": 0.09624,
    "h": 291.4
  },
  "luminance": 0.01451
}

Semantic roles & 50–950 ramp

primary
#25154C
secondary
#6E8439
accent
#E048B4
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #25154C

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

Preview Lab → · Contrast checker → · Palette generator →

#25154C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva