#310334#310334

#310334 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.6% C 0.098 H 325.4°. Best body text is #FFFFFF at 17.60:1 contrast (WCAG AA passes).

Color values

HEX#310334
RGBrgb(49, 3, 52)
HSLhsl(296, 89%, 11%)
HSVhsv(296, 94%, 20%)
CMYKcmyk(5.8%, 94.2%, 0%, 79.6%)
CIE-LABlab(8.71, 29.66, -19.97)
CIE-LCHlch(8.71, 35.75, 326.04°)
OKLaboklab(22.61% 0.0809 -0.0557)
OKLCHoklch(22.61% 0.098 325.4)
XYZxyz(1.9190, 0.9662, 3.3336)
Luminance0.0097 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310334 #063403
analogous
#180334 #310334 #34031E
triadic
#310334 #343103 #033431
tetradic
#310334 #341803 #063403 #031E34
square
#310334 #341803 #063403 #031E34
split-complementary
#310334 #1E3403 #033418
monochromatic
#1B021D #1B021D #310334 #68066E #9E0AA8

Accessibility & contrast

On white

17.60
#310334 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#310334 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310334
17.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310334#FFFFFF#000000##FFFFFF
##3103341.0017.601.1917.60
#FFFFFF17.601.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001535
Deuteranopia (green-blind)
#0E1B33
Tritanopia (blue-blind)
#320B1B
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #310334;
/* rgb */ color: rgb(49, 3, 52);
/* oklch */ color: oklch(22.6% 0.098 325.4);
Tailwind
colors: {
  custom: {
    50: '#6c496c',
    500: '#310334',
    950: '#000000',
  },
}
SCSS
$custom: #310334;
$custom-light: #6c496c;
$custom-dark: #000000;
JSON
{
  "hex": "#310334",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 52
  },
  "hsl": {
    "h": 296.327,
    "s": 89.091,
    "l": 10.784
  },
  "oklch": {
    "l": 0.22613,
    "c": 0.0982,
    "h": 325.4
  },
  "luminance": 0.00966
}

Semantic roles & 50–950 ramp

primary
#310334
secondary
#21771C
accent
#FF2936
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #310334

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

Preview Lab → · Contrast checker → · Palette generator →

#310334 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva