#31125F#31125F

#31125F is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.126 H 295.4°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#31125F
RGBrgb(49, 18, 95)
HSLhsl(264, 68%, 22%)
HSVhsv(264, 81%, 37%)
CMYKcmyk(48.4%, 81.1%, 0%, 62.7%)
CIE-LABlab(15.02, 33.41, -39.69)
CIE-LCHlch(15.02, 51.88, 310.09°)
OKLaboklab(28.25% 0.054 -0.1137)
OKLCHoklch(28.25% 0.126 295.4)
XYZxyz(3.5479, 1.9117, 11.0063)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31125F #405F12
analogous
#12195F #31125F #58125F
triadic
#31125F #5F3112 #125F31
tetradic
#31125F #5F1219 #405F12 #125F58
square
#31125F #5F1219 #405F12 #125F58
split-complementary
#31125F #5F5812 #195F12
monochromatic
#0D051A #16082C #31125F #4C1C92 #6625C6

Accessibility & contrast

On white

15.19
#31125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31125F
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31125F#FFFFFF#000000##FFFFFF
##31125F1.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00255E
Tritanopia (blue-blind)
#242738
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #31125f;
/* rgb */ color: rgb(49, 18, 95);
/* oklch */ color: oklch(28.2% 0.126 295.4);
Tailwind
colors: {
  custom: {
    50: '#6f548d',
    500: '#31125f',
    950: '#000000',
  },
}
SCSS
$custom: #31125f;
$custom-light: #6f548d;
$custom-dark: #000000;
JSON
{
  "hex": "#31125f",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 264.156,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28247,
    "c": 0.12589,
    "h": 295.4
  },
  "luminance": 0.01912
}

Semantic roles & 50–950 ramp

primary
#31125F
secondary
#709736
accent
#EB3DA5
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #31125F

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

Preview Lab → · Contrast checker → · Palette generator →

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