#25124B#25124B

#25124B is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.099 H 293.0°. Best body text is #FFFFFF at 16.58:1 contrast (WCAG AA passes).

Color values

HEX#25124B
RGBrgb(37, 18, 75)
HSLhsl(260, 61%, 18%)
HSVhsv(260, 76%, 29%)
CMYKcmyk(50.7%, 76%, 0%, 70.6%)
CIE-LABlab(11.51, 24.96, -31.90)
CIE-LCHlch(11.51, 40.50, 308.05°)
OKLaboklab(24.81% 0.0389 -0.0913)
OKLCHoklch(24.81% 0.099 293)
XYZxyz(2.2489, 1.3339, 6.7942)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25124B #384B12
analogous
#121B4B #25124B #41124B
triadic
#25124B #4B2512 #124B25
tetradic
#25124B #4B121B #384B12 #124B41
square
#25124B #4B121B #384B12 #124B41
split-complementary
#25124B #4B4112 #1B4B12
monochromatic
#0C0619 #0D061A #25124B #3D1E7C #562AAE

Accessibility & contrast

On white

16.58
#25124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #25124B
16.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25124B#FFFFFF#000000##FFFFFF
##25124B1.0016.581.2716.58
#FFFFFF16.581.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4D
Deuteranopia (green-blind)
#001D4A
Tritanopia (blue-blind)
#1A202C
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #25124b;
/* rgb */ color: rgb(37, 18, 75);
/* oklch */ color: oklch(24.8% 0.099 293.0);
Tailwind
colors: {
  custom: {
    50: '#64517e',
    500: '#25124b',
    950: '#000000',
  },
}
SCSS
$custom: #25124b;
$custom-light: #64517e;
$custom-dark: #000000;
JSON
{
  "hex": "#25124b",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 260,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.24811,
    "c": 0.09924,
    "h": 293
  },
  "luminance": 0.01334
}

Semantic roles & 50–950 ramp

primary
#25124B
secondary
#6A8435
accent
#E443AF
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #25124B

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

Preview Lab → · Contrast checker → · Palette generator →

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