#25124F#25124F

#25124F is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.105 H 291.3°. Best body text is #FFFFFF at 16.43:1 contrast (WCAG AA passes).

Color values

HEX#25124F
RGBrgb(37, 18, 79)
HSLhsl(259, 63%, 19%)
HSVhsv(259, 77%, 31%)
CMYKcmyk(53.2%, 77.2%, 0%, 69%)
CIE-LABlab(11.89, 26.25, -34.03)
CIE-LCHlch(11.89, 42.98, 307.65°)
OKLaboklab(25.2% 0.038 -0.0976)
OKLCHoklch(25.2% 0.105 291.3)
XYZxyz(2.3901, 1.3904, 7.5380)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25124F #3C4F12
analogous
#121E4F #25124F #44124F
triadic
#25124F #4F2512 #124F25
tetradic
#25124F #4F121E #3C4F12 #124F44
square
#25124F #4F121E #3C4F12 #124F44
split-complementary
#25124F #4F4412 #1E4F12
monochromatic
#0C0619 #0E071D #25124F #3C1D81 #5429B3

Accessibility & contrast

On white

16.43
#25124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#25124F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25124F
16.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25124F#FFFFFF#000000##FFFFFF
##25124F1.0016.431.2816.43
#FFFFFF16.431.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#001E4E
Tritanopia (blue-blind)
#17222F
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #25124f;
/* rgb */ color: rgb(37, 18, 79);
/* oklch */ color: oklch(25.2% 0.105 291.3);
Tailwind
colors: {
  custom: {
    50: '#655181',
    500: '#25124f',
    950: '#000000',
  },
}
SCSS
$custom: #25124f;
$custom-light: #655181;
$custom-dark: #000000;
JSON
{
  "hex": "#25124f",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 258.689,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25203,
    "c": 0.10473,
    "h": 291.3
  },
  "luminance": 0.0139
}

Semantic roles & 50–950 ramp

primary
#25124F
secondary
#6E8835
accent
#E642B3
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #25124F

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

Preview Lab → · Contrast checker → · Palette generator →

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