#310F5A#310F5A

#310F5A is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.4% C 0.123 H 298.2°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#310F5A
RGBrgb(49, 15, 90)
HSLhsl(267, 71%, 21%)
HSVhsv(267, 83%, 35%)
CMYKcmyk(45.6%, 83.3%, 0%, 64.7%)
CIE-LABlab(14.02, 33.44, -37.98)
CIE-LCHlch(14.02, 50.60, 311.37°)
OKLaboklab(27.4% 0.0583 -0.1087)
OKLCHoklch(27.4% 0.123 298.2)
XYZxyz(3.2824, 1.7327, 9.8324)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F5A #385A0F
analogous
#0F125A #310F5A #560F5A
triadic
#310F5A #5A310F #0F5A31
tetradic
#310F5A #5A0F12 #385A0F #0F5A56
square
#310F5A #5A0F12 #385A0F #0F5A56
split-complementary
#310F5A #5A560F #125A0F
monochromatic
#0E041A #140626 #310F5A #4E188E #6A20C3

Accessibility & contrast

On white

15.59
#310F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#310F5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310F5A
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F5A#FFFFFF#000000##FFFFFF
##310F5A1.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245C
Deuteranopia (green-blind)
#002359
Tritanopia (blue-blind)
#272334
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #310f5a;
/* rgb */ color: rgb(49, 15, 90);
/* oklch */ color: oklch(27.4% 0.123 298.2);
Tailwind
colors: {
  custom: {
    50: '#6e5289',
    500: '#310f5a',
    950: '#000000',
  },
}
SCSS
$custom: #310f5a;
$custom-light: #6e5289;
$custom-dark: #000000;
JSON
{
  "hex": "#310f5a",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 90
  },
  "hsl": {
    "h": 267.2,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27396,
    "c": 0.12331,
    "h": 298.2
  },
  "luminance": 0.01733
}

Semantic roles & 50–950 ramp

primary
#310F5A
secondary
#679431
accent
#EE3A9C
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #310F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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