#310F52#310F52

#310F52 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.114 H 302.1°. Best body text is #FFFFFF at 15.90:1 contrast (WCAG AA passes).

Color values

HEX#310F52
RGBrgb(49, 15, 82)
HSLhsl(270, 69%, 19%)
HSVhsv(270, 82%, 32%)
CMYKcmyk(40.2%, 81.7%, 0%, 67.8%)
CIE-LABlab(13.25, 31.22, -33.80)
CIE-LCHlch(13.25, 46.01, 312.73°)
OKLaboklab(26.62% 0.0606 -0.0964)
OKLCHoklch(26.62% 0.114 302.1)
XYZxyz(2.9601, 1.6038, 8.1346)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F52 #30520F
analogous
#100F52 #310F52 #520F52
triadic
#310F52 #52310F #0F5231
tetradic
#310F52 #52100F #30520F #0F5252
square
#310F52 #52100F #30520F #0F5252
split-complementary
#310F52 #52520F #0F5210
monochromatic
#0F051A #12061E #310F52 #501886 #6F22B9

Accessibility & contrast

On white

15.90
#310F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#310F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310F52
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F52#FFFFFF#000000##FFFFFF
##310F521.0015.901.3215.90
#FFFFFF15.901.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002254
Deuteranopia (green-blind)
#002251
Tritanopia (blue-blind)
#2A2030
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #310f52;
/* rgb */ color: rgb(49, 15, 82);
/* oklch */ color: oklch(26.6% 0.114 302.1);
Tailwind
colors: {
  custom: {
    50: '#6d5183',
    500: '#310f52',
    950: '#000000',
  },
}
SCSS
$custom: #310f52;
$custom-light: #6d5183;
$custom-dark: #000000;
JSON
{
  "hex": "#310f52",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 270.448,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26624,
    "c": 0.11387,
    "h": 302.1
  },
  "luminance": 0.01604
}

Semantic roles & 50–950 ramp

primary
#310F52
secondary
#5E8C31
accent
#EC3C93
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #310F52

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

Preview Lab → · Contrast checker → · Palette generator →

#310F52 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva