#310F54#310F54

#310F54 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.8% C 0.116 H 301.1°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#310F54
RGBrgb(49, 15, 84)
HSLhsl(270, 70%, 19%)
HSVhsv(270, 82%, 33%)
CMYKcmyk(41.7%, 82.1%, 0%, 67.1%)
CIE-LABlab(13.44, 31.77, -34.86)
CIE-LCHlch(13.44, 47.16, 312.35°)
OKLaboklab(26.81% 0.0601 -0.0995)
OKLCHoklch(26.81% 0.116 301.1)
XYZxyz(3.0373, 1.6347, 8.5413)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F54 #32540F
analogous
#0F1054 #310F54 #540F54
triadic
#310F54 #54310F #0F5431
tetradic
#310F54 #540F10 #32540F #0F5454
square
#310F54 #540F10 #32540F #0F5454
split-complementary
#310F54 #54540F #10540F
monochromatic
#0F051A #130620 #310F54 #4F1888 #6E22BC

Accessibility & contrast

On white

15.83
#310F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#310F54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310F54
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F54#FFFFFF#000000##FFFFFF
##310F541.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002256
Deuteranopia (green-blind)
#002253
Tritanopia (blue-blind)
#292131
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #310f54;
/* rgb */ color: rgb(49, 15, 84);
/* oklch */ color: oklch(26.8% 0.116 301.1);
Tailwind
colors: {
  custom: {
    50: '#6d5185',
    500: '#310f54',
    950: '#000000',
  },
}
SCSS
$custom: #310f54;
$custom-light: #6d5185;
$custom-dark: #000000;
JSON
{
  "hex": "#310f54",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 84
  },
  "hsl": {
    "h": 269.565,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26814,
    "c": 0.11623,
    "h": 301.1
  },
  "luminance": 0.01635
}

Semantic roles & 50–950 ramp

primary
#310F54
secondary
#608E31
accent
#ED3B95
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #310F54

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

Preview Lab → · Contrast checker → · Palette generator →

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