#25156F#25156F

#25156F is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.143 H 280.8°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#25156F
RGBrgb(37, 21, 111)
HSLhsl(251, 68%, 26%)
HSVhsv(251, 81%, 44%)
CMYKcmyk(66.7%, 81.1%, 0%, 56.5%)
CIE-LABlab(15.89, 35.01, -48.85)
CIE-LCHlch(15.89, 60.10, 305.63°)
OKLaboklab(29.05% 0.0268 -0.141)
OKLCHoklch(29.05% 0.143 280.8)
XYZxyz(3.8995, 2.0770, 15.2313)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25156F #5F6F15
analogous
#15326F #25156F #52156F
triadic
#25156F #6F2515 #156F25
tetradic
#25156F #6F1532 #5F6F15 #156F52
square
#25156F #6F1532 #5F6F15 #156F52
split-complementary
#25156F #6F5215 #326F15
monochromatic
#09051A #140B3C #25156F #361FA2 #4728D6

Accessibility & contrast

On white

14.84
#25156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#25156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25156F
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25156F#FFFFFF#000000##FFFFFF
##25156F1.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00246D
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #25156f;
/* rgb */ color: rgb(37, 21, 111);
/* oklch */ color: oklch(29.0% 0.143 280.8);
Tailwind
colors: {
  custom: {
    50: '#6b5599',
    500: '#25156f',
    950: '#000000',
  },
}
SCSS
$custom: #25156f;
$custom-light: #6b5599;
$custom-dark: #000000;
JSON
{
  "hex": "#25156f",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 250.667,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29045,
    "c": 0.14349,
    "h": 280.8
  },
  "luminance": 0.02077
}

Semantic roles & 50–950 ramp

primary
#25156F
secondary
#92A53A
accent
#EB3DCC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #25156F

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

Preview Lab → · Contrast checker → · Palette generator →

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