#25154D#25154D

#25154D is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.5% C 0.098 H 291.0°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#25154D
RGBrgb(37, 21, 77)
HSLhsl(257, 57%, 19%)
HSVhsv(257, 73%, 30%)
CMYKcmyk(51.9%, 72.7%, 0%, 69.8%)
CIE-LABlab(12.39, 23.73, -31.85)
CIE-LCHlch(12.39, 39.72, 306.68°)
OKLaboklab(25.5% 0.035 -0.0912)
OKLCHoklch(25.5% 0.098 291)
XYZxyz(2.3703, 1.4654, 7.1777)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25154D #3D4D15
analogous
#15214D #25154D #41154D
triadic
#25154D #4D2515 #154D25
tetradic
#25154D #4D1521 #3D4D15 #154D41
square
#25154D #4D1521 #3D4D15 #154D41
split-complementary
#25154D #4D4115 #214D15
monochromatic
#0C0718 #0E081D #25154D #3C227D #532FAD

Accessibility & contrast

On white

16.24
#25154D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #25154D
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25154D#FFFFFF#000000##FFFFFF
##25154D1.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214F
Deuteranopia (green-blind)
#001F4C
Tritanopia (blue-blind)
#18232E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #25154d;
/* rgb */ color: rgb(37, 21, 77);
/* oklch */ color: oklch(25.5% 0.098 291.0);
Tailwind
colors: {
  custom: {
    50: '#64537f',
    500: '#25154d',
    950: '#000000',
  },
}
SCSS
$custom: #25154d;
$custom-light: #64537f;
$custom-dark: #000000;
JSON
{
  "hex": "#25154d",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 77
  },
  "hsl": {
    "h": 257.143,
    "s": 57.143,
    "l": 19.216
  },
  "oklch": {
    "l": 0.25497,
    "c": 0.09767,
    "h": 291
  },
  "luminance": 0.01465
}

Semantic roles & 50–950 ramp

primary
#25154D
secondary
#6F8539
accent
#E047B5
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #25154D

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

Preview Lab → · Contrast checker → · Palette generator →

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