#31124E#31124E

#31124E is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.105 H 303.6°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#31124E
RGBrgb(49, 18, 78)
HSLhsl(271, 63%, 19%)
HSVhsv(271, 77%, 31%)
CMYKcmyk(37.2%, 76.9%, 0%, 69.4%)
CIE-LABlab(13.45, 28.56, -30.75)
CIE-LCHlch(13.45, 41.96, 312.89°)
OKLaboklab(26.65% 0.0581 -0.0874)
OKLCHoklch(26.65% 0.105 303.6)
XYZxyz(2.8578, 1.6356, 7.3714)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31124E #2F4E12
analogous
#13124E #31124E #4E124D
triadic
#31124E #4E3112 #124E31
tetradic
#31124E #4E1312 #2F4E12 #124D4E
square
#31124E #4E1312 #2F4E12 #124D4E
split-complementary
#31124E #4D4E12 #124E13
monochromatic
#100619 #12071C #31124E #501D80 #6F29B1

Accessibility & contrast

On white

15.82
#31124E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31124E
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31124E#FFFFFF#000000##FFFFFF
##31124E1.0015.821.3315.82
#FFFFFF15.821.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002250
Deuteranopia (green-blind)
#00224D
Tritanopia (blue-blind)
#2B202E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #31124e;
/* rgb */ color: rgb(49, 18, 78);
/* oklch */ color: oklch(26.6% 0.105 303.6);
Tailwind
colors: {
  custom: {
    50: '#6c5380',
    500: '#31124e',
    950: '#000000',
  },
}
SCSS
$custom: #31124e;
$custom-light: #6c5380;
$custom-dark: #000000;
JSON
{
  "hex": "#31124e",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 78
  },
  "hsl": {
    "h": 271,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26649,
    "c": 0.105,
    "h": 303.6
  },
  "luminance": 0.01636
}

Semantic roles & 50–950 ramp

primary
#31124E
secondary
#5D8735
accent
#E64291
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #31124E

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

Preview Lab → · Contrast checker → · Palette generator →

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