#310D58#310D58

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

Color values

HEX#310D58
RGBrgb(49, 13, 88)
HSLhsl(269, 74%, 20%)
HSVhsv(269, 85%, 35%)
CMYKcmyk(44.3%, 85.2%, 0%, 65.5%)
CIE-LABlab(13.50, 33.80, -37.46)
CIE-LCHlch(13.50, 50.46, 312.06°)
OKLaboklab(26.98% 0.0607 -0.1072)
OKLCHoklch(26.98% 0.123 299.5)
XYZxyz(3.1716, 1.6454, 9.3811)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310D58 #34580D
analogous
#0D0F58 #310D58 #570D58
triadic
#310D58 #58310D #0D5831
tetradic
#310D58 #580D0F #34580D #0D5857
square
#310D58 #580D0F #34580D #0D5857
split-complementary
#310D58 #58570D #0F580D
monochromatic
#0F041B #130523 #310D58 #4F158D #6C1DC3

Accessibility & contrast

On white

15.80
#310D58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310D58
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310D58#FFFFFF#000000##FFFFFF
##310D581.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225A
Deuteranopia (green-blind)
#002257
Tritanopia (blue-blind)
#282233
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #310d58;
/* rgb */ color: rgb(49, 13, 88);
/* oklch */ color: oklch(27.0% 0.123 299.5);
Tailwind
colors: {
  custom: {
    50: '#6e5188',
    500: '#310d58',
    950: '#000000',
  },
}
SCSS
$custom: #310d58;
$custom-light: #6e5188;
$custom-dark: #000000;
JSON
{
  "hex": "#310d58",
  "rgb": {
    "r": 49,
    "g": 13,
    "b": 88
  },
  "hsl": {
    "h": 268.8,
    "s": 74.257,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26977,
    "c": 0.12317,
    "h": 299.5
  },
  "luminance": 0.01645
}

Semantic roles & 50–950 ramp

primary
#310D58
secondary
#62932E
accent
#F13798
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020B
muted
#7B787C

Preview Lab

Preview with #310D58

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

Preview Lab → · Contrast checker → · Palette generator →

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