#25165B#25165B

#25165B is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.116 H 285.7°. Best body text is #FFFFFF at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#25165B
RGBrgb(37, 22, 91)
HSLhsl(253, 61%, 22%)
HSVhsv(253, 76%, 36%)
CMYKcmyk(59.3%, 75.8%, 0%, 64.3%)
CIE-LABlab(13.96, 27.79, -38.81)
CIE-LCHlch(13.96, 47.73, 305.61°)
OKLaboklab(27.04% 0.0313 -0.1116)
OKLCHoklch(27.04% 0.116 285.7)
XYZxyz(2.9376, 1.7223, 10.0731)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25165B #4C5B16
analogous
#162A5B #25165B #47165B
triadic
#25165B #5B2516 #165B25
tetradic
#25165B #5B162A #4C5B16 #165B47
square
#25165B #5B162A #4C5B16 #165B47
split-complementary
#25165B #5B4716 #2A5B16
monochromatic
#0A0619 #110A2A #25165B #39228C #4D2EBE

Accessibility & contrast

On white

15.62
#25165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#25165B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25165B
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25165B#FFFFFF#000000##FFFFFF
##25165B1.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#00215A
Tritanopia (blue-blind)
#0D2836
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #25165b;
/* rgb */ color: rgb(37, 22, 91);
/* oklch */ color: oklch(27.0% 0.116 285.7);
Tailwind
colors: {
  custom: {
    50: '#66558a',
    500: '#25165b',
    950: '#000000',
  },
}
SCSS
$custom: #25165b;
$custom-light: #66558a;
$custom-dark: #000000;
JSON
{
  "hex": "#25165b",
  "rgb": {
    "r": 37,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 253.043,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27038,
    "c": 0.11592,
    "h": 285.7
  },
  "luminance": 0.01722
}

Semantic roles & 50–950 ramp

primary
#25165B
secondary
#7F923B
accent
#E444C1
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #25165B

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

Preview Lab → · Contrast checker → · Palette generator →

#25165B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva