#310338#310338

#310338 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.9% C 0.102 H 322.0°. Best body text is #FFFFFF at 17.49:1 contrast (WCAG AA passes).

Color values

HEX#310338
RGBrgb(49, 3, 56)
HSLhsl(292, 90%, 12%)
HSVhsv(292, 95%, 22%)
CMYKcmyk(12.5%, 94.6%, 0%, 78%)
CIE-LABlab(9.02, 30.48, -22.38)
CIE-LCHlch(9.02, 37.81, 323.71°)
OKLaboklab(22.94% 0.0803 -0.0628)
OKLCHoklch(22.94% 0.102 322)
XYZxyz(2.0129, 1.0037, 3.8283)
Luminance0.0100 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310338 #0A3803
analogous
#170338 #310338 #380325
triadic
#310338 #383103 #033831
tetradic
#310338 #381703 #0A3803 #032538
square
#310338 #381703 #0A3803 #032538
split-complementary
#310338 #253803 #033817
monochromatic
#19021D #19021D #310338 #640672 #9709AC

Accessibility & contrast

On white

17.49
#310338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#310338 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310338
17.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310338#FFFFFF#000000##FFFFFF
##3103381.0017.491.2017.49
#FFFFFF17.491.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001639
Deuteranopia (green-blind)
#0A1B37
Tritanopia (blue-blind)
#320E1E
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310338;
/* rgb */ color: rgb(49, 3, 56);
/* oklch */ color: oklch(22.9% 0.102 322.0);
Tailwind
colors: {
  custom: {
    50: '#6c4a6f',
    500: '#310338',
    950: '#000000',
  },
}
SCSS
$custom: #310338;
$custom-light: #6c4a6f;
$custom-dark: #000000;
JSON
{
  "hex": "#310338",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 56
  },
  "hsl": {
    "h": 292.075,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.22936,
    "c": 0.10188,
    "h": 322
  },
  "luminance": 0.01004
}

Semantic roles & 50–950 ramp

primary
#310338
secondary
#297B1C
accent
#FF2945
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #310338

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

Preview Lab → · Contrast checker → · Palette generator →

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