#25166D#25166D

#25166D is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.140 H 281.0°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#25166D
RGBrgb(37, 22, 109)
HSLhsl(250, 66%, 26%)
HSVhsv(250, 80%, 43%)
CMYKcmyk(66.1%, 79.8%, 0%, 57.3%)
CIE-LABlab(15.86, 33.80, -47.59)
CIE-LCHlch(15.86, 58.37, 305.38°)
OKLaboklab(28.96% 0.0267 -0.1373)
OKLCHoklch(28.96% 0.14 281)
XYZxyz(3.8093, 2.0710, 14.6640)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25166D #5E6D16
analogous
#16326D #25166D #50166D
triadic
#25166D #6D2516 #166D25
tetradic
#25166D #6D1632 #5E6D16 #166D50
square
#25166D #6D1632 #5E6D16 #166D50
split-complementary
#25166D #6D5016 #326D16
monochromatic
#090519 #140C3A #25166D #3620A0 #482BD3

Accessibility & contrast

On white

14.85
#25166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#25166D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25166D
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25166D#FFFFFF#000000##FFFFFF
##25166D1.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6F
Deuteranopia (green-blind)
#00246B
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #25166d;
/* rgb */ color: rgb(37, 22, 109);
/* oklch */ color: oklch(29.0% 0.140 281.0);
Tailwind
colors: {
  custom: {
    50: '#6a5698',
    500: '#25166d',
    950: '#000000',
  },
}
SCSS
$custom: #25166d;
$custom-light: #6a5698;
$custom-dark: #000000;
JSON
{
  "hex": "#25166d",
  "rgb": {
    "r": 37,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 250.345,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28956,
    "c": 0.1399,
    "h": 281
  },
  "luminance": 0.02071
}

Semantic roles & 50–950 ramp

primary
#25166D
secondary
#91A33C
accent
#E93ECC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #25166D

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

Preview Lab → · Contrast checker → · Palette generator →

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