#25154E#25154E

#25154E is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.6% C 0.099 H 290.6°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#25154E
RGBrgb(37, 21, 78)
HSLhsl(257, 58%, 19%)
HSVhsv(257, 73%, 31%)
CMYKcmyk(52.6%, 73.1%, 0%, 69.4%)
CIE-LABlab(12.48, 24.06, -32.39)
CIE-LCHlch(12.48, 40.35, 306.60°)
OKLaboklab(25.59% 0.0348 -0.0928)
OKLCHoklch(25.59% 0.099 290.6)
XYZxyz(2.4059, 1.4796, 7.3651)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25154E #3E4E15
analogous
#15224E #25154E #42154E
triadic
#25154E #4E2515 #154E25
tetradic
#25154E #4E1522 #3E4E15 #154E42
square
#25154E #4E1522 #3E4E15 #154E42
split-complementary
#25154E #4E4215 #224E15
monochromatic
#0B0618 #0E081E #25154E #3C227E #532FAE

Accessibility & contrast

On white

16.20
#25154E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#25154E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25154E
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25154E#FFFFFF#000000##FFFFFF
##25154E1.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002150
Deuteranopia (green-blind)
#001F4D
Tritanopia (blue-blind)
#18232F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #25154e;
/* rgb */ color: rgb(37, 21, 78);
/* oklch */ color: oklch(25.6% 0.099 290.6);
Tailwind
colors: {
  custom: {
    50: '#645380',
    500: '#25154e',
    950: '#000000',
  },
}
SCSS
$custom: #25154e;
$custom-light: #645380;
$custom-dark: #000000;
JSON
{
  "hex": "#25154e",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 78
  },
  "hsl": {
    "h": 256.842,
    "s": 57.576,
    "l": 19.412
  },
  "oklch": {
    "l": 0.25592,
    "c": 0.0991,
    "h": 290.6
  },
  "luminance": 0.0148
}

Semantic roles & 50–950 ramp

primary
#25154E
secondary
#708639
accent
#E147B6
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #25154E

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

Preview Lab → · Contrast checker → · Palette generator →

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