#31124F#31124F

#31124F is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.106 H 303.0°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#31124F
RGBrgb(49, 18, 79)
HSLhsl(270, 63%, 19%)
HSVhsv(270, 77%, 31%)
CMYKcmyk(38%, 77.2%, 0%, 69%)
CIE-LABlab(13.53, 28.84, -31.29)
CIE-LCHlch(13.53, 42.55, 312.66°)
OKLaboklab(26.74% 0.0579 -0.0891)
OKLCHoklch(26.74% 0.106 303)
XYZxyz(2.8939, 1.6501, 7.5617)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31124F #304F12
analogous
#13124F #31124F #4F124F
triadic
#31124F #4F3112 #124F31
tetradic
#31124F #4F1312 #304F12 #124F4F
square
#31124F #4F1312 #304F12 #124F4F
split-complementary
#31124F #4F4F12 #124F13
monochromatic
#0F0619 #12071D #31124F #501D81 #6F29B3

Accessibility & contrast

On white

15.79
#31124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#31124F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31124F
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31124F#FFFFFF#000000##FFFFFF
##31124F1.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002251
Deuteranopia (green-blind)
#00224E
Tritanopia (blue-blind)
#2B202F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #31124f;
/* rgb */ color: rgb(49, 18, 79);
/* oklch */ color: oklch(26.7% 0.106 303.0);
Tailwind
colors: {
  custom: {
    50: '#6c5381',
    500: '#31124f',
    950: '#000000',
  },
}
SCSS
$custom: #31124f;
$custom-light: #6c5381;
$custom-dark: #000000;
JSON
{
  "hex": "#31124f",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 270.492,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26737,
    "c": 0.10624,
    "h": 303
  },
  "luminance": 0.0165
}

Semantic roles & 50–950 ramp

primary
#31124F
secondary
#5E8835
accent
#E64293
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #31124F

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

Preview Lab → · Contrast checker → · Palette generator →

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