#31125D#31125D

#31125D is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.123 H 296.2°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#31125D
RGBrgb(49, 18, 93)
HSLhsl(265, 68%, 22%)
HSVhsv(265, 81%, 36%)
CMYKcmyk(47.3%, 80.6%, 0%, 63.5%)
CIE-LABlab(14.82, 32.83, -38.67)
CIE-LCHlch(14.82, 50.73, 310.33°)
OKLaboklab(28.05% 0.0546 -0.1107)
OKLCHoklch(28.05% 0.123 296.2)
XYZxyz(3.4582, 1.8758, 10.5337)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31125D #3E5D12
analogous
#12195D #31125D #57125D
triadic
#31125D #5D3112 #125D31
tetradic
#31125D #5D1219 #3E5D12 #125D57
square
#31125D #5D1219 #3E5D12 #125D57
split-complementary
#31125D #5D5712 #195D12
monochromatic
#0E051A #16082A #31125D #4C1C90 #6726C4

Accessibility & contrast

On white

15.27
#31125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#31125D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31125D
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31125D#FFFFFF#000000##FFFFFF
##31125D1.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265F
Deuteranopia (green-blind)
#00245C
Tritanopia (blue-blind)
#252637
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #31125d;
/* rgb */ color: rgb(49, 18, 93);
/* oklch */ color: oklch(28.1% 0.123 296.2);
Tailwind
colors: {
  custom: {
    50: '#6e538c',
    500: '#31125d',
    950: '#000000',
  },
}
SCSS
$custom: #31125d;
$custom-light: #6e538c;
$custom-dark: #000000;
JSON
{
  "hex": "#31125d",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 264.8,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.2805,
    "c": 0.12346,
    "h": 296.2
  },
  "luminance": 0.01876
}

Semantic roles & 50–950 ramp

primary
#31125D
secondary
#6E9535
accent
#EA3DA3
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #31125D

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

Preview Lab → · Contrast checker → · Palette generator →

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