#25166A#25166A

#25166A is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.136 H 281.7°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#25166A
RGBrgb(37, 22, 106)
HSLhsl(251, 66%, 25%)
HSVhsv(251, 79%, 42%)
CMYKcmyk(65.1%, 79.2%, 0%, 58.4%)
CIE-LABlab(15.53, 32.81, -46.17)
CIE-LCHlch(15.53, 56.64, 305.40°)
OKLaboklab(28.63% 0.0276 -0.1332)
OKLCHoklch(28.63% 0.136 281.7)
XYZxyz(3.6506, 2.0075, 13.8280)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25166A #5B6A16
analogous
#16316A #25166A #4F166A
triadic
#25166A #6A2516 #166A25
tetradic
#25166A #6A1631 #5B6A16 #166A4F
square
#25166A #6A1631 #5B6A16 #166A4F
split-complementary
#25166A #6A4F16 #316A16
monochromatic
#090519 #130B37 #25166A #37219D #482BCF

Accessibility & contrast

On white

14.98
#25166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#25166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25166A
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25166A#FFFFFF#000000##FFFFFF
##25166A1.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002468
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #25166a;
/* rgb */ color: rgb(37, 22, 106);
/* oklch */ color: oklch(28.6% 0.136 281.7);
Tailwind
colors: {
  custom: {
    50: '#6a5596',
    500: '#25166a',
    950: '#000000',
  },
}
SCSS
$custom: #25166a;
$custom-light: #6a5596;
$custom-dark: #000000;
JSON
{
  "hex": "#25166a",
  "rgb": {
    "r": 37,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 250.714,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28626,
    "c": 0.136,
    "h": 281.7
  },
  "luminance": 0.02008
}

Semantic roles & 50–950 ramp

primary
#25166A
secondary
#8EA03B
accent
#E93FCA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #25166A

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

Preview Lab → · Contrast checker → · Palette generator →

#25166A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva