#310C57#310C57

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

Color values

HEX#310C57
RGBrgb(49, 12, 87)
HSLhsl(270, 76%, 19%)
HSVhsv(270, 86%, 34%)
CMYKcmyk(43.7%, 86.2%, 0%, 65.9%)
CIE-LABlab(13.25, 33.96, -37.20)
CIE-LCHlch(13.25, 50.37, 312.40°)
OKLaboklab(26.77% 0.0619 -0.1064)
OKLCHoklch(26.77% 0.123 300.2)
XYZxyz(3.1180, 1.6040, 9.1603)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C57 #32570C
analogous
#0C0C57 #310C57 #570C57
triadic
#310C57 #57310C #0C5731
tetradic
#310C57 #570C0C #32570C #0C5757
square
#310C57 #570C0C #32570C #0C5757
split-complementary
#310C57 #57570C #0C570C
monochromatic
#0F041B #130521 #310C57 #4F138D #6E1BC3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##310C57#FFFFFF#000000##FFFFFF
##310C571.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)
#002259
Deuteranopia (green-blind)
#002156
Tritanopia (blue-blind)
#282132
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #310c57;
/* rgb */ color: rgb(49, 12, 87);
/* oklch */ color: oklch(26.8% 0.123 300.2);
Tailwind
colors: {
  custom: {
    50: '#6e5087',
    500: '#310c57',
    950: '#000000',
  },
}
SCSS
$custom: #310c57;
$custom-light: #6e5087;
$custom-dark: #000000;
JSON
{
  "hex": "#310c57",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 87
  },
  "hsl": {
    "h": 269.6,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26773,
    "c": 0.12308,
    "h": 300.2
  },
  "luminance": 0.01604
}

Semantic roles & 50–950 ramp

primary
#310C57
secondary
#60922D
accent
#F23595
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #310C57

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

Preview Lab → · Contrast checker → · Palette generator →

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