#25124D#25124D

#25124D is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.0% C 0.102 H 292.1°. Best body text is #FFFFFF at 16.50:1 contrast (WCAG AA passes).

Color values

HEX#25124D
RGBrgb(37, 18, 77)
HSLhsl(259, 62%, 19%)
HSVhsv(259, 77%, 30%)
CMYKcmyk(51.9%, 76.6%, 0%, 69.8%)
CIE-LABlab(11.70, 25.61, -32.97)
CIE-LCHlch(11.70, 41.75, 307.84°)
OKLaboklab(25.01% 0.0385 -0.0945)
OKLCHoklch(25.01% 0.102 292.1)
XYZxyz(2.3184, 1.3617, 7.1604)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25124D #3A4D12
analogous
#121C4D #25124D #42124D
triadic
#25124D #4D2512 #124D25
tetradic
#25124D #4D121C #3A4D12 #124D42
square
#25124D #4D121C #3A4D12 #124D42
split-complementary
#25124D #4D4212 #1C4D12
monochromatic
#0C0619 #0D061B #25124D #3D1E7F #5529B0

Accessibility & contrast

On white

16.50
#25124D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#25124D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25124D
16.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25124D#FFFFFF#000000##FFFFFF
##25124D1.0016.501.2716.50
#FFFFFF16.501.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204F
Deuteranopia (green-blind)
#001E4C
Tritanopia (blue-blind)
#19212E
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #25124d;
/* rgb */ color: rgb(37, 18, 77);
/* oklch */ color: oklch(25.0% 0.102 292.1);
Tailwind
colors: {
  custom: {
    50: '#64517f',
    500: '#25124d',
    950: '#000000',
  },
}
SCSS
$custom: #25124d;
$custom-light: #64517f;
$custom-dark: #000000;
JSON
{
  "hex": "#25124d",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 77
  },
  "hsl": {
    "h": 259.322,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25005,
    "c": 0.102,
    "h": 292.1
  },
  "luminance": 0.01362
}

Semantic roles & 50–950 ramp

primary
#25124D
secondary
#6C8635
accent
#E543B1
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #25124D

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

Preview Lab → · Contrast checker → · Palette generator →

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