#310538#310538

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

Color values

HEX#310538
RGBrgb(49, 5, 56)
HSLhsl(292, 84%, 12%)
HSVhsv(292, 91%, 22%)
CMYKcmyk(12.5%, 91.1%, 0%, 78%)
CIE-LABlab(9.38, 29.44, -21.81)
CIE-LCHlch(9.38, 36.64, 323.47°)
OKLaboklab(23.19% 0.0775 -0.0611)
OKLCHoklch(23.19% 0.099 321.7)
XYZxyz(2.0346, 1.0472, 3.8356)
Luminance0.0105 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310538 #0C3805
analogous
#180538 #310538 #380526
triadic
#310538 #383105 #053831
tetradic
#310538 #381805 #0C3805 #052638
square
#310538 #381805 #0C3805 #052638
split-complementary
#310538 #263805 #053818
monochromatic
#19031C #19031C #310538 #620A70 #930FA8

Accessibility & contrast

On white

17.36
#310538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#310538 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310538
17.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310538#FFFFFF#000000##FFFFFF
##3105381.0017.361.2117.36
#FFFFFF17.361.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001739
Deuteranopia (green-blind)
#0C1C37
Tritanopia (blue-blind)
#320F1E
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #310538;
/* rgb */ color: rgb(49, 5, 56);
/* oklch */ color: oklch(23.2% 0.099 321.7);
Tailwind
colors: {
  custom: {
    50: '#6c4b6f',
    500: '#310538',
    950: '#000000',
  },
}
SCSS
$custom: #310538;
$custom-light: #6c4b6f;
$custom-dark: #000000;
JSON
{
  "hex": "#310538",
  "rgb": {
    "r": 49,
    "g": 5,
    "b": 56
  },
  "hsl": {
    "h": 291.765,
    "s": 83.607,
    "l": 11.961
  },
  "oklch": {
    "l": 0.23187,
    "c": 0.09867,
    "h": 321.7
  },
  "luminance": 0.01047
}

Semantic roles & 50–950 ramp

primary
#310538
secondary
#2C7920
accent
#FA2E4A
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #310538

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

Preview Lab → · Contrast checker → · Palette generator →

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