#310F6A#310F6A

#310F6A is a dark, vivid violet. Relative luminance 0.020; OKLCH L 29.0% C 0.142 H 291.8°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#310F6A
RGBrgb(49, 15, 106)
HSLhsl(262, 75%, 24%)
HSVhsv(262, 86%, 42%)
CMYKcmyk(53.8%, 85.8%, 0%, 58.4%)
CIE-LABlab(15.67, 37.96, -45.89)
CIE-LCHlch(15.67, 59.55, 309.60°)
OKLaboklab(29.05% 0.0527 -0.1319)
OKLCHoklch(29.05% 0.142 291.8)
XYZxyz(4.0382, 2.0351, 13.8129)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F6A #486A0F
analogous
#0F1A6A #310F6A #5E0F6A
triadic
#310F6A #6A310F #0F6A31
tetradic
#310F6A #6A0F1A #486A0F #0F6A5E
square
#310F6A #6A0F1A #486A0F #0F6A5E
split-complementary
#310F6A #6A5E0F #1A6A0F
monochromatic
#0C041B #180734 #310F6A #4A17A0 #631ED5

Accessibility & contrast

On white

14.93
#310F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#310F6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310F6A
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F6A#FFFFFF#000000##FFFFFF
##310F6A1.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286C
Deuteranopia (green-blind)
#002568
Tritanopia (blue-blind)
#1D2A3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #310f6a;
/* rgb */ color: rgb(49, 15, 106);
/* oklch */ color: oklch(29.0% 0.142 291.8);
Tailwind
colors: {
  custom: {
    50: '#715396',
    500: '#310f6a',
    950: '#000000',
  },
}
SCSS
$custom: #310f6a;
$custom-light: #715396;
$custom-dark: #000000;
JSON
{
  "hex": "#310f6a",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 106
  },
  "hsl": {
    "h": 262.418,
    "s": 75.207,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29047,
    "c": 0.142,
    "h": 291.8
  },
  "luminance": 0.02035
}

Semantic roles & 50–950 ramp

primary
#310F6A
secondary
#79A232
accent
#F236AC
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #310F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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