#31034E#31034E

#31034E is a very dark, vivid violet. Relative luminance 0.013; OKLCH L 25.0% C 0.123 H 306.6°. Best body text is #FFFFFF at 16.75:1 contrast (WCAG AA passes).

Color values

HEX#31034E
RGBrgb(49, 3, 78)
HSLhsl(277, 93%, 16%)
HSVhsv(277, 96%, 31%)
CMYKcmyk(37.2%, 96.2%, 0%, 69.4%)
CIE-LABlab(11.05, 35.47, -34.65)
CIE-LCHlch(11.05, 49.58, 315.67°)
OKLaboklab(24.97% 0.0733 -0.0988)
OKLCHoklch(24.97% 0.123 306.6)
XYZxyz(2.6740, 1.2682, 7.3102)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31034E #204E03
analogous
#0B034E #31034E #4E0345
triadic
#31034E #4E3103 #034E31
tetradic
#31034E #4E0B03 #204E03 #03454E
square
#31034E #4E0B03 #204E03 #03454E
split-complementary
#31034E #454E03 #034E0B
monochromatic
#13011D #13011D #31034E #560589 #7B08C4

Accessibility & contrast

On white

16.75
#31034E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#31034E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31034E
16.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31034E#FFFFFF#000000##FFFFFF
##31034E1.0016.751.2516.75
#FFFFFF16.751.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C50
Deuteranopia (green-blind)
#001E4D
Tritanopia (blue-blind)
#2C192B
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #31034e;
/* rgb */ color: rgb(49, 3, 78);
/* oklch */ color: oklch(25.0% 0.123 306.6);
Tailwind
colors: {
  custom: {
    50: '#6d4b80',
    500: '#31034e',
    950: '#000000',
  },
}
SCSS
$custom: #31034e;
$custom-light: #6d4b80;
$custom-dark: #000000;
JSON
{
  "hex": "#31034e",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 78
  },
  "hsl": {
    "h": 276.8,
    "s": 92.593,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24974,
    "c": 0.12301,
    "h": 306.6
  },
  "luminance": 0.01268
}

Semantic roles & 50–950 ramp

primary
#31034E
secondary
#4A8E1E
accent
#FF297C
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07010A
muted
#7A777C

Preview Lab

Preview with #31034E

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

Preview Lab → · Contrast checker → · Palette generator →

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