#25117E#25117E

#25117E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.165 H 278.3°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#25117E
RGBrgb(37, 17, 126)
HSLhsl(251, 76%, 28%)
HSVhsv(251, 87%, 49%)
CMYKcmyk(70.6%, 86.5%, 0%, 50.6%)
CIE-LABlab(16.99, 41.69, -56.68)
CIE-LCHlch(16.99, 70.36, 306.34°)
OKLaboklab(30.33% 0.024 -0.1637)
OKLCHoklch(30.33% 0.165 278.3)
XYZxyz(4.7281, 2.3002, 19.9294)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25117E #6A7E11
analogous
#11337E #25117E #5B117E
triadic
#25117E #7E2511 #117E25
tetradic
#25117E #7E1133 #6A7E11 #117E5B
square
#25117E #7E1133 #6A7E11 #117E5B
split-complementary
#25117E #7E5B11 #337E11
monochromatic
#08041B #150A48 #25117E #3518B4 #4A27E2

Accessibility & contrast

On white

14.38
#25117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#25117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25117E
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25117E#FFFFFF#000000##FFFFFF
##25117E1.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #25117e;
/* rgb */ color: rgb(37, 17, 126);
/* oklch */ color: oklch(30.3% 0.165 278.3);
Tailwind
colors: {
  custom: {
    50: '#6f54a5',
    500: '#25117e',
    950: '#000000',
  },
}
SCSS
$custom: #25117e;
$custom-light: #6f54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#25117e",
  "rgb": {
    "r": 37,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 251.009,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3033,
    "c": 0.16544,
    "h": 278.3
  },
  "luminance": 0.02301
}

Semantic roles & 50–950 ramp

primary
#25117E
secondary
#9DB437
accent
#F335D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #25117E

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

Preview Lab → · Contrast checker → · Palette generator →

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