#25166C#25166C

#25166C is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.8% C 0.139 H 281.2°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#25166C
RGBrgb(37, 22, 108)
HSLhsl(250, 66%, 25%)
HSVhsv(250, 80%, 42%)
CMYKcmyk(65.7%, 79.6%, 0%, 57.6%)
CIE-LABlab(15.75, 33.47, -47.12)
CIE-LCHlch(15.75, 57.80, 305.39°)
OKLaboklab(28.85% 0.027 -0.1359)
OKLCHoklch(28.85% 0.139 281.2)
XYZxyz(3.7558, 2.0496, 14.3821)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25166C #5D6C16
analogous
#16326C #25166C #50166C
triadic
#25166C #6C2516 #166C25
tetradic
#25166C #6C1632 #5D6C16 #166C50
square
#25166C #6C1632 #5D6C16 #166C50
split-complementary
#25166C #6C5016 #326C16
monochromatic
#090519 #140C39 #25166C #36209F #482BD2

Accessibility & contrast

On white

14.89
#25166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#25166C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25166C
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25166C#FFFFFF#000000##FFFFFF
##25166C1.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00246A
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #25166c;
/* rgb */ color: rgb(37, 22, 108);
/* oklch */ color: oklch(28.8% 0.139 281.2);
Tailwind
colors: {
  custom: {
    50: '#6a5597',
    500: '#25166c',
    950: '#000000',
  },
}
SCSS
$custom: #25166c;
$custom-light: #6a5597;
$custom-dark: #000000;
JSON
{
  "hex": "#25166c",
  "rgb": {
    "r": 37,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 250.465,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28846,
    "c": 0.13861,
    "h": 281.2
  },
  "luminance": 0.0205
}

Semantic roles & 50–950 ramp

primary
#25166C
secondary
#90A23C
accent
#E93FCB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #25166C

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

Preview Lab → · Contrast checker → · Palette generator →

#25166C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva