#25176B#25176B

#25176B is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.136 H 281.2°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#25176B
RGBrgb(37, 23, 107)
HSLhsl(250, 65%, 25%)
HSVhsv(250, 79%, 42%)
CMYKcmyk(65.4%, 78.5%, 0%, 58%)
CIE-LABlab(15.84, 32.57, -46.32)
CIE-LCHlch(15.84, 56.62, 305.11°)
OKLaboklab(28.88% 0.0266 -0.1336)
OKLCHoklch(28.88% 0.136 281.2)
XYZxyz(3.7224, 2.0674, 14.1100)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25176B #5D6B17
analogous
#17336B #25176B #4F176B
triadic
#25176B #6B2517 #176B25
tetradic
#25176B #6B1733 #5D6B17 #176B4F
square
#25176B #6B1733 #5D6B17 #176B4F
split-complementary
#25176B #6B4F17 #336B17
monochromatic
#090519 #140C39 #25176B #36229D #482DD0

Accessibility & contrast

On white

14.86
#25176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#25176B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25176B
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25176B#FFFFFF#000000##FFFFFF
##25176B1.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6D
Deuteranopia (green-blind)
#002469
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #25176b;
/* rgb */ color: rgb(37, 23, 107);
/* oklch */ color: oklch(28.9% 0.136 281.2);
Tailwind
colors: {
  custom: {
    50: '#6a5696',
    500: '#25176b',
    950: '#000000',
  },
}
SCSS
$custom: #25176b;
$custom-light: #6a5696;
$custom-dark: #000000;
JSON
{
  "hex": "#25176b",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 250,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28878,
    "c": 0.13622,
    "h": 281.2
  },
  "luminance": 0.02068
}

Semantic roles & 50–950 ramp

primary
#25176B
secondary
#90A13D
accent
#E840CC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #25176B

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

Preview Lab → · Contrast checker → · Palette generator →

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