#310B56#310B56

#310B56 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.6% C 0.123 H 300.9°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#310B56
RGBrgb(49, 11, 86)
HSLhsl(270, 77%, 19%)
HSVhsv(270, 87%, 34%)
CMYKcmyk(43%, 87.2%, 0%, 66.3%)
CIE-LABlab(13.01, 34.11, -36.92)
CIE-LCHlch(13.01, 50.27, 312.74°)
OKLaboklab(26.57% 0.0631 -0.1055)
OKLCHoklch(26.57% 0.123 300.9)
XYZxyz(3.0656, 1.5642, 8.9427)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B56 #30560B
analogous
#0C0B56 #310B56 #560B56
triadic
#310B56 #56310B #0B5631
tetradic
#310B56 #560C0B #30560B #0B5656
square
#310B56 #560C0B #30560B #0B5656
split-complementary
#310B56 #56560B #0B560C
monochromatic
#0F031B #120420 #310B56 #50128C #6F19C3

Accessibility & contrast

On white

16.00
#310B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#310B56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310B56
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B56#FFFFFF#000000##FFFFFF
##310B561.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002158
Deuteranopia (green-blind)
#002155
Tritanopia (blue-blind)
#282031
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #310b56;
/* rgb */ color: rgb(49, 11, 86);
/* oklch */ color: oklch(26.6% 0.123 300.9);
Tailwind
colors: {
  custom: {
    50: '#6e5086',
    500: '#310b56',
    950: '#000000',
  },
}
SCSS
$custom: #310b56;
$custom-light: #6e5086;
$custom-dark: #000000;
JSON
{
  "hex": "#310b56",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 86
  },
  "hsl": {
    "h": 270.4,
    "s": 77.32,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26573,
    "c": 0.12297,
    "h": 300.9
  },
  "luminance": 0.01564
}

Semantic roles & 50–950 ramp

primary
#310B56
secondary
#5E912B
accent
#F43493
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #310B56

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

Preview Lab → · Contrast checker → · Palette generator →

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