#25124E#25124E

#25124E is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.103 H 291.7°. Best body text is #FFFFFF at 16.47:1 contrast (WCAG AA passes).

Color values

HEX#25124E
RGBrgb(37, 18, 78)
HSLhsl(259, 63%, 19%)
HSVhsv(259, 77%, 31%)
CMYKcmyk(52.6%, 76.9%, 0%, 69.4%)
CIE-LABlab(11.80, 25.93, -33.50)
CIE-LCHlch(11.80, 42.37, 307.74°)
OKLaboklab(25.1% 0.0382 -0.096)
OKLCHoklch(25.1% 0.103 291.7)
XYZxyz(2.3540, 1.3759, 7.3478)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25124E #3B4E12
analogous
#121D4E #25124E #43124E
triadic
#25124E #4E2512 #124E25
tetradic
#25124E #4E121D #3B4E12 #124E43
square
#25124E #4E121D #3B4E12 #124E43
split-complementary
#25124E #4E4312 #1D4E12
monochromatic
#0C0619 #0D071C #25124E #3D1D80 #5429B1

Accessibility & contrast

On white

16.47
#25124E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #25124E
16.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25124E#FFFFFF#000000##FFFFFF
##25124E1.0016.471.2816.47
#FFFFFF16.471.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002050
Deuteranopia (green-blind)
#001E4D
Tritanopia (blue-blind)
#18212E
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #25124e;
/* rgb */ color: rgb(37, 18, 78);
/* oklch */ color: oklch(25.1% 0.103 291.7);
Tailwind
colors: {
  custom: {
    50: '#645180',
    500: '#25124e',
    950: '#000000',
  },
}
SCSS
$custom: #25124e;
$custom-light: #645180;
$custom-dark: #000000;
JSON
{
  "hex": "#25124e",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 78
  },
  "hsl": {
    "h": 259,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.25104,
    "c": 0.10337,
    "h": 291.7
  },
  "luminance": 0.01376
}

Semantic roles & 50–950 ramp

primary
#25124E
secondary
#6D8735
accent
#E642B2
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #25124E

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

Preview Lab → · Contrast checker → · Palette generator →

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