#310335#310335

#310335 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.7% C 0.099 H 324.5°. Best body text is #FFFFFF at 17.57:1 contrast (WCAG AA passes).

Color values

HEX#310335
RGBrgb(49, 3, 53)
HSLhsl(295, 89%, 11%)
HSVhsv(295, 94%, 21%)
CMYKcmyk(7.5%, 94.3%, 0%, 79.2%)
CIE-LABlab(8.78, 29.86, -20.58)
CIE-LCHlch(8.78, 36.26, 325.43°)
OKLaboklab(22.69% 0.0807 -0.0575)
OKLCHoklch(22.69% 0.099 324.5)
XYZxyz(1.9417, 0.9753, 3.4534)
Luminance0.0097 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310335 #073503
analogous
#180335 #310335 #350320
triadic
#310335 #353103 #033531
tetradic
#310335 #351803 #073503 #032035
square
#310335 #351803 #073503 #032035
split-complementary
#310335 #203503 #033518
monochromatic
#1B021D #1B021D #310335 #67066F #9C0AA9

Accessibility & contrast

On white

17.57
#310335 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310335
17.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310335#FFFFFF#000000##FFFFFF
##3103351.0017.571.2017.57
#FFFFFF17.571.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001636
Deuteranopia (green-blind)
#0D1B34
Tritanopia (blue-blind)
#320C1C
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #310335;
/* rgb */ color: rgb(49, 3, 53);
/* oklch */ color: oklch(22.7% 0.099 324.5);
Tailwind
colors: {
  custom: {
    50: '#6c4a6c',
    500: '#310335',
    950: '#000000',
  },
}
SCSS
$custom: #310335;
$custom-light: #6c4a6c;
$custom-dark: #000000;
JSON
{
  "hex": "#310335",
  "rgb": {
    "r": 49,
    "g": 3,
    "b": 53
  },
  "hsl": {
    "h": 295.2,
    "s": 89.286,
    "l": 10.98
  },
  "oklch": {
    "l": 0.22692,
    "c": 0.09911,
    "h": 324.5
  },
  "luminance": 0.00975
}

Semantic roles & 50–950 ramp

primary
#310335
secondary
#23781C
accent
#FF293A
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #310335

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

Preview Lab → · Contrast checker → · Palette generator →

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