#31124B#31124B

#31124B is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.101 H 305.4°. Best body text is #FFFFFF at 15.92:1 contrast (WCAG AA passes).

Color values

HEX#31124B
RGBrgb(49, 18, 75)
HSLhsl(273, 61%, 18%)
HSVhsv(273, 76%, 29%)
CMYKcmyk(34.7%, 76%, 0%, 70.6%)
CIE-LABlab(13.19, 27.72, -29.09)
CIE-LCHlch(13.19, 40.18, 313.62°)
OKLaboklab(26.39% 0.0586 -0.0826)
OKLCHoklch(26.39% 0.101 305.4)
XYZxyz(2.7526, 1.5936, 6.8178)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31124B #2C4B12
analogous
#15124B #31124B #4B1248
triadic
#31124B #4B3112 #124B31
tetradic
#31124B #4B1512 #2C4B12 #12484B
square
#31124B #4B1512 #2C4B12 #12484B
split-complementary
#31124B #484B12 #124B15
monochromatic
#100619 #11061A #31124B #511E7C #712AAE

Accessibility & contrast

On white

15.92
#31124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#31124B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31124B
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31124B#FFFFFF#000000##FFFFFF
##31124B1.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214D
Deuteranopia (green-blind)
#01224A
Tritanopia (blue-blind)
#2C1F2C
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #31124b;
/* rgb */ color: rgb(49, 18, 75);
/* oklch */ color: oklch(26.4% 0.101 305.4);
Tailwind
colors: {
  custom: {
    50: '#6c537e',
    500: '#31124b',
    950: '#000000',
  },
}
SCSS
$custom: #31124b;
$custom-light: #6c537e;
$custom-dark: #000000;
JSON
{
  "hex": "#31124b",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 272.632,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26387,
    "c": 0.10127,
    "h": 305.4
  },
  "luminance": 0.01594
}

Semantic roles & 50–950 ramp

primary
#31124B
secondary
#598435
accent
#E4438D
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #31124B

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

Preview Lab → · Contrast checker → · Palette generator →

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