#25135F#25135F

#25135F is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.0% C 0.125 H 285.3°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#25135F
RGBrgb(37, 19, 95)
HSLhsl(254, 67%, 22%)
HSVhsv(254, 80%, 37%)
CMYKcmyk(61.1%, 80%, 0%, 62.7%)
CIE-LABlab(13.74, 30.89, -41.84)
CIE-LCHlch(13.74, 52.01, 306.44°)
OKLaboklab(27.01% 0.0329 -0.1205)
OKLCHoklch(27.01% 0.125 285.3)
XYZxyz(3.0608, 1.6851, 10.9882)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25135F #4D5F13
analogous
#13275F #25135F #4B135F
triadic
#25135F #5F2513 #135F25
tetradic
#25135F #5F1327 #4D5F13 #135F4B
square
#25135F #5F1327 #4D5F13 #135F4B
split-complementary
#25135F #5F4B13 #275F13
monochromatic
#0A051A #11092C #25135F #391D92 #4D27C5

Accessibility & contrast

On white

15.71
#25135F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #25135F
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25135F#FFFFFF#000000##FFFFFF
##25135F1.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#00215E
Tritanopia (blue-blind)
#072838
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #25135f;
/* rgb */ color: rgb(37, 19, 95);
/* oklch */ color: oklch(27.0% 0.125 285.3);
Tailwind
colors: {
  custom: {
    50: '#68538d',
    500: '#25135f',
    950: '#000000',
  },
}
SCSS
$custom: #25135f;
$custom-light: #68538d;
$custom-dark: #000000;
JSON
{
  "hex": "#25135f",
  "rgb": {
    "r": 37,
    "g": 19,
    "b": 95
  },
  "hsl": {
    "h": 254.211,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.2701,
    "c": 0.12491,
    "h": 285.3
  },
  "luminance": 0.01685
}

Semantic roles & 50–950 ramp

primary
#25135F
secondary
#809737
accent
#EA3EC1
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #25135F

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

Preview Lab → · Contrast checker → · Palette generator →

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