#25126F#25126F

#25126F is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.146 H 281.3°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#25126F
RGBrgb(37, 18, 111)
HSLhsl(252, 72%, 25%)
HSVhsv(252, 84%, 44%)
CMYKcmyk(66.7%, 83.8%, 0%, 56.5%)
CIE-LABlab(15.35, 36.57, -49.74)
CIE-LCHlch(15.35, 61.73, 306.32°)
OKLaboklab(28.67% 0.0286 -0.1435)
OKLCHoklch(28.67% 0.146 281.3)
XYZxyz(3.8476, 1.9733, 15.2140)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25126F #5C6F12
analogous
#122D6F #25126F #53126F
triadic
#25126F #6F2512 #126F25
tetradic
#25126F #6F122D #5C6F12 #126F53
square
#25126F #6F122D #5C6F12 #126F53
split-complementary
#25126F #6F5312 #2D6F12
monochromatic
#09041A #13093A #25126F #371BA4 #4823D8

Accessibility & contrast

On white

15.06
#25126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#25126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25126F
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25126F#FFFFFF#000000##FFFFFF
##25126F1.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002972
Deuteranopia (green-blind)
#00236D
Tritanopia (blue-blind)
#002E41
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #25126f;
/* rgb */ color: rgb(37, 18, 111);
/* oklch */ color: oklch(28.7% 0.146 281.3);
Tailwind
colors: {
  custom: {
    50: '#6b5399',
    500: '#25126f',
    950: '#000000',
  },
}
SCSS
$custom: #25126f;
$custom-light: #6b5399;
$custom-dark: #000000;
JSON
{
  "hex": "#25126f",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 252.258,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28669,
    "c": 0.14635,
    "h": 281.3
  },
  "luminance": 0.01974
}

Semantic roles & 50–950 ramp

primary
#25126F
secondary
#8FA637
accent
#EF39CA
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #25126F

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

Preview Lab → · Contrast checker → · Palette generator →

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