#31134B#31134B

#31134B is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.100 H 305.1°. Best body text is #FFFFFF at 15.84:1 contrast (WCAG AA passes).

Color values

HEX#31134B
RGBrgb(49, 19, 75)
HSLhsl(272, 60%, 18%)
HSVhsv(272, 75%, 29%)
CMYKcmyk(34.7%, 74.7%, 0%, 70.6%)
CIE-LABlab(13.39, 27.16, -28.76)
CIE-LCHlch(13.39, 39.56, 313.36°)
OKLaboklab(26.53% 0.0573 -0.0816)
OKLCHoklch(26.53% 0.1 305.1)
XYZxyz(2.7692, 1.6267, 6.8233)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31134B #2D4B13
analogous
#15134B #31134B #4B1349
triadic
#31134B #4B3113 #134B31
tetradic
#31134B #4B1513 #2D4B13 #13494B
square
#31134B #4B1513 #2D4B13 #13494B
split-complementary
#31134B #494B13 #134B15
monochromatic
#100618 #11071A #31134B #511F7C #712CAD

Accessibility & contrast

On white

15.84
#31134B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#31134B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31134B
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31134B#FFFFFF#000000##FFFFFF
##31134B1.0015.841.3315.84
#FFFFFF15.841.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224D
Deuteranopia (green-blind)
#03224A
Tritanopia (blue-blind)
#2C1F2D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #31134b;
/* rgb */ color: rgb(49, 19, 75);
/* oklch */ color: oklch(26.5% 0.100 305.1);
Tailwind
colors: {
  custom: {
    50: '#6c537e',
    500: '#31134b',
    950: '#000000',
  },
}
SCSS
$custom: #31134b;
$custom-light: #6c537e;
$custom-dark: #000000;
JSON
{
  "hex": "#31134b",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 75
  },
  "hsl": {
    "h": 272.143,
    "s": 59.574,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26531,
    "c": 0.09976,
    "h": 305.1
  },
  "luminance": 0.01627
}

Semantic roles & 50–950 ramp

primary
#31134B
secondary
#5A8436
accent
#E3458E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #31134B

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

Preview Lab → · Contrast checker → · Palette generator →

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