#25124C#25124C

#25124C is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.9% C 0.101 H 292.6°. Best body text is #FFFFFF at 16.54:1 contrast (WCAG AA passes).

Color values

HEX#25124C
RGBrgb(37, 18, 76)
HSLhsl(260, 62%, 18%)
HSVhsv(260, 76%, 30%)
CMYKcmyk(51.3%, 76.3%, 0%, 70.2%)
CIE-LABlab(11.61, 25.29, -32.43)
CIE-LCHlch(11.61, 41.13, 307.94°)
OKLaboklab(24.91% 0.0386 -0.0929)
OKLCHoklch(24.91% 0.101 292.6)
XYZxyz(2.2834, 1.3477, 6.9759)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25124C #394C12
analogous
#121C4C #25124C #42124C
triadic
#25124C #4C2512 #124C25
tetradic
#25124C #4C121C #394C12 #124C42
square
#25124C #4C121C #394C12 #124C42
split-complementary
#25124C #4C4212 #1C4C12
monochromatic
#0C0619 #0D061B #25124C #3D1E7D #5529AF

Accessibility & contrast

On white

16.54
#25124C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #25124C
16.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25124C#FFFFFF#000000##FFFFFF
##25124C1.0016.541.2716.54
#FFFFFF16.541.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4E
Deuteranopia (green-blind)
#001E4B
Tritanopia (blue-blind)
#19212D
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #25124c;
/* rgb */ color: rgb(37, 18, 76);
/* oklch */ color: oklch(24.9% 0.101 292.6);
Tailwind
colors: {
  custom: {
    50: '#64517f',
    500: '#25124c',
    950: '#000000',
  },
}
SCSS
$custom: #25124c;
$custom-light: #64517f;
$custom-dark: #000000;
JSON
{
  "hex": "#25124c",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 76
  },
  "hsl": {
    "h": 259.655,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.24907,
    "c": 0.10062,
    "h": 292.6
  },
  "luminance": 0.01348
}

Semantic roles & 50–950 ramp

primary
#25124C
secondary
#6B8535
accent
#E543B0
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #25124C

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

Preview Lab → · Contrast checker → · Palette generator →

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