#310C55#310C55

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

Color values

HEX#310C55
RGBrgb(49, 12, 85)
HSLhsl(270, 75%, 19%)
HSVhsv(270, 86%, 33%)
CMYKcmyk(42.4%, 85.9%, 0%, 66.7%)
CIE-LABlab(13.06, 33.42, -36.16)
CIE-LCHlch(13.06, 49.24, 312.74°)
OKLaboklab(26.58% 0.0626 -0.1033)
OKLCHoklch(26.58% 0.121 301.2)
XYZxyz(3.0374, 1.5718, 8.7359)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C55 #30550C
analogous
#0D0C55 #310C55 #550C55
triadic
#310C55 #55310C #0C5531
tetradic
#310C55 #550D0C #30550C #0C5555
square
#310C55 #550D0C #30550C #0C5555
split-complementary
#310C55 #55550C #0C550D
monochromatic
#0F041B #12041F #310C55 #50148B #6F1BC0

Accessibility & contrast

On white

15.98
#310C55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310C55
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C55#FFFFFF#000000##FFFFFF
##310C551.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002157
Deuteranopia (green-blind)
#002154
Tritanopia (blue-blind)
#292031
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #310c55;
/* rgb */ color: rgb(49, 12, 85);
/* oklch */ color: oklch(26.6% 0.121 301.2);
Tailwind
colors: {
  custom: {
    50: '#6e5086',
    500: '#310c55',
    950: '#000000',
  },
}
SCSS
$custom: #310c55;
$custom-light: #6e5086;
$custom-dark: #000000;
JSON
{
  "hex": "#310c55",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 85
  },
  "hsl": {
    "h": 270.411,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26575,
    "c": 0.12081,
    "h": 301.2
  },
  "luminance": 0.01572
}

Semantic roles & 50–950 ramp

primary
#310C55
secondary
#5E902D
accent
#F23693
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #310C55

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

Preview Lab → · Contrast checker → · Palette generator →

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