#25117F#25117F

#25117F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.4% C 0.167 H 278.2°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#25117F
RGBrgb(37, 17, 127)
HSLhsl(251, 76%, 28%)
HSVhsv(251, 87%, 50%)
CMYKcmyk(70.9%, 86.6%, 0%, 50.2%)
CIE-LABlab(17.11, 41.99, -57.11)
CIE-LCHlch(17.11, 70.89, 306.33°)
OKLaboklab(30.45% 0.0237 -0.1649)
OKLCHoklch(30.45% 0.167 278.2)
XYZxyz(4.7929, 2.3261, 20.2710)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25117F #6B7F11
analogous
#11347F #25117F #5C117F
triadic
#25117F #7F2511 #117F25
tetradic
#25117F #7F1134 #6B7F11 #117F5C
square
#25117F #7F1134 #6B7F11 #117F5C
split-complementary
#25117F #7F5C11 #347F11
monochromatic
#08041B #150A49 #25117F #3518B5 #4A28E2

Accessibility & contrast

On white

14.33
#25117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#25117F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25117F
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25117F#FFFFFF#000000##FFFFFF
##25117F1.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #25117f;
/* rgb */ color: rgb(37, 17, 127);
/* oklch */ color: oklch(30.4% 0.167 278.2);
Tailwind
colors: {
  custom: {
    50: '#6f54a5',
    500: '#25117f',
    950: '#000000',
  },
}
SCSS
$custom: #25117f;
$custom-light: #6f54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#25117f",
  "rgb": {
    "r": 37,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 250.909,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3045,
    "c": 0.16663,
    "h": 278.2
  },
  "luminance": 0.02327
}

Semantic roles & 50–950 ramp

primary
#25117F
secondary
#9EB537
accent
#F335D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #25117F

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

Preview Lab → · Contrast checker → · Palette generator →

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