#25145F#25145F

#25145F is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.2% C 0.124 H 285.0°. Best body text is #FFFFFF at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#25145F
RGBrgb(37, 20, 95)
HSLhsl(254, 65%, 23%)
HSVhsv(254, 79%, 37%)
CMYKcmyk(61.1%, 78.9%, 0%, 62.7%)
CIE-LABlab(13.94, 30.31, -41.51)
CIE-LCHlch(13.94, 51.40, 306.14°)
OKLaboklab(27.15% 0.0321 -0.1195)
OKLCHoklch(27.15% 0.124 285)
XYZxyz(3.0780, 1.7197, 10.9940)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25145F #4E5F14
analogous
#14295F #25145F #4A145F
triadic
#25145F #5F2514 #145F25
tetradic
#25145F #5F1429 #4E5F14 #145F4A
square
#25145F #5F1429 #4E5F14 #145F4A
split-complementary
#25145F #5F4A14 #295F14
monochromatic
#0A0519 #11092C #25145F #391F92 #4C29C4

Accessibility & contrast

On white

15.62
#25145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#25145F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25145F
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25145F#FFFFFF#000000##FFFFFF
##25145F1.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)
#002661
Deuteranopia (green-blind)
#00215E
Tritanopia (blue-blind)
#072938
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #25145f;
/* rgb */ color: rgb(37, 20, 95);
/* oklch */ color: oklch(27.2% 0.124 285.0);
Tailwind
colors: {
  custom: {
    50: '#68538d',
    500: '#25145f',
    950: '#000000',
  },
}
SCSS
$custom: #25145f;
$custom-light: #68538d;
$custom-dark: #000000;
JSON
{
  "hex": "#25145f",
  "rgb": {
    "r": 37,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 253.6,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27153,
    "c": 0.12376,
    "h": 285
  },
  "luminance": 0.0172
}

Semantic roles & 50–950 ramp

primary
#25145F
secondary
#819738
accent
#E840C2
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #25145F

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

Preview Lab → · Contrast checker → · Palette generator →

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