#25147A#25147A

#25147A is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.158 H 278.7°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#25147A
RGBrgb(37, 20, 122)
HSLhsl(250, 72%, 28%)
HSVhsv(250, 84%, 48%)
CMYKcmyk(69.7%, 83.6%, 0%, 52.2%)
CIE-LABlab(16.98, 39.05, -54.14)
CIE-LCHlch(16.98, 66.75, 305.81°)
OKLaboklab(30.18% 0.024 -0.1563)
OKLCHoklch(30.18% 0.158 278.7)
XYZxyz(4.5248, 2.2984, 18.6138)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25147A #697A14
analogous
#14367A #25147A #58147A
triadic
#25147A #7A2514 #147A25
tetradic
#25147A #7A1436 #697A14 #147A58
square
#25147A #7A1436 #697A14 #147A58
split-complementary
#25147A #7A5814 #367A14
monochromatic
#08041A #150B45 #25147A #351DAF #492CDC

Accessibility & contrast

On white

14.39
#25147A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#25147A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25147A
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25147A#FFFFFF#000000##FFFFFF
##25147A1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7D
Deuteranopia (green-blind)
#002678
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #25147a;
/* rgb */ color: rgb(37, 20, 122);
/* oklch */ color: oklch(30.2% 0.158 278.7);
Tailwind
colors: {
  custom: {
    50: '#6e55a2',
    500: '#25147a',
    950: '#000000',
  },
}
SCSS
$custom: #25147a;
$custom-light: #6e55a2;
$custom-dark: #000000;
JSON
{
  "hex": "#25147a",
  "rgb": {
    "r": 37,
    "g": 20,
    "b": 122
  },
  "hsl": {
    "h": 250,
    "s": 71.831,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30183,
    "c": 0.15818,
    "h": 278.7
  },
  "luminance": 0.02299
}

Semantic roles & 50–950 ramp

primary
#25147A
secondary
#9CB03A
accent
#EF39D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #25147A

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

Preview Lab → · Contrast checker → · Palette generator →

#25147A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva