#31125C#31125C

#31125C is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.0% C 0.122 H 296.7°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#31125C
RGBrgb(49, 18, 92)
HSLhsl(265, 67%, 22%)
HSVhsv(265, 80%, 36%)
CMYKcmyk(46.7%, 80.4%, 0%, 63.9%)
CIE-LABlab(14.72, 32.54, -38.16)
CIE-LCHlch(14.72, 50.15, 310.46°)
OKLaboklab(27.95% 0.0548 -0.1092)
OKLCHoklch(27.95% 0.122 296.7)
XYZxyz(3.4142, 1.8582, 10.3019)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31125C #3D5C12
analogous
#12185C #31125C #56125C
triadic
#31125C #5C3112 #125C31
tetradic
#31125C #5C1218 #3D5C12 #125C56
square
#31125C #5C1218 #3D5C12 #125C56
split-complementary
#31125C #5C5612 #185C12
monochromatic
#0E051A #160829 #31125C #4C1C8F #6826C2

Accessibility & contrast

On white

15.31
#31125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#31125C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31125C
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31125C#FFFFFF#000000##FFFFFF
##31125C1.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#00245B
Tritanopia (blue-blind)
#262636
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #31125c;
/* rgb */ color: rgb(49, 18, 92);
/* oklch */ color: oklch(28.0% 0.122 296.7);
Tailwind
colors: {
  custom: {
    50: '#6e538b',
    500: '#31125c',
    950: '#000000',
  },
}
SCSS
$custom: #31125c;
$custom-light: #6e538b;
$custom-dark: #000000;
JSON
{
  "hex": "#31125c",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 265.135,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27952,
    "c": 0.12224,
    "h": 296.7
  },
  "luminance": 0.01858
}

Semantic roles & 50–950 ramp

primary
#31125C
secondary
#6D9435
accent
#EA3EA2
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #31125C

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

Preview Lab → · Contrast checker → · Palette generator →

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