#25184E#25184E

#25184E is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.1% C 0.095 H 289.2°. Best body text is #FFFFFF at 15.92:1 contrast (WCAG AA passes).

Color values

HEX#25184E
RGBrgb(37, 24, 78)
HSLhsl(254, 53%, 20%)
HSVhsv(254, 69%, 31%)
CMYKcmyk(52.6%, 69.2%, 0%, 69.4%)
CIE-LABlab(13.21, 22.09, -31.20)
CIE-LCHlch(13.21, 38.23, 305.29°)
OKLaboklab(26.12% 0.0312 -0.0893)
OKLCHoklch(26.12% 0.095 289.2)
XYZxyz(2.4643, 1.5965, 7.3846)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25184E #414E18
analogous
#18264E #25184E #40184E
triadic
#25184E #4E2518 #184E25
tetradic
#25184E #4E1826 #414E18 #184E40
square
#25184E #4E1826 #414E18 #184E40
split-complementary
#25184E #4E4018 #264E18
monochromatic
#0B0717 #0F0A1F #25184E #3B267D #5135AC

Accessibility & contrast

On white

15.92
#25184E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#25184E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25184E
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25184E#FFFFFF#000000##FFFFFF
##25184E1.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002350
Deuteranopia (green-blind)
#00214D
Tritanopia (blue-blind)
#182530
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #25184e;
/* rgb */ color: rgb(37, 24, 78);
/* oklch */ color: oklch(26.1% 0.095 289.2);
Tailwind
colors: {
  custom: {
    50: '#645580',
    500: '#25184e',
    950: '#000000',
  },
}
SCSS
$custom: #25184e;
$custom-light: #645580;
$custom-dark: #000000;
JSON
{
  "hex": "#25184e",
  "rgb": {
    "r": 37,
    "g": 24,
    "b": 78
  },
  "hsl": {
    "h": 254.444,
    "s": 52.941,
    "l": 20
  },
  "oklch": {
    "l": 0.26121,
    "c": 0.09458,
    "h": 289.2
  },
  "luminance": 0.01597
}

Semantic roles & 50–950 ramp

primary
#25184E
secondary
#74853D
accent
#DC4BB9
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #25184E

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

Preview Lab → · Contrast checker → · Palette generator →

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