#310F4D#310F4D

#310F4D is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.2% C 0.108 H 304.9°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#310F4D
RGBrgb(49, 15, 77)
HSLhsl(273, 67%, 18%)
HSVhsv(273, 81%, 30%)
CMYKcmyk(36.4%, 80.5%, 0%, 69.8%)
CIE-LABlab(12.80, 29.85, -31.10)
CIE-LCHlch(12.80, 43.11, 313.82°)
OKLaboklab(26.16% 0.0618 -0.0885)
OKLCHoklch(26.16% 0.108 304.9)
XYZxyz(2.7767, 1.5305, 7.1689)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F4D #2B4D0F
analogous
#120F4D #310F4D #4D0F4A
triadic
#310F4D #4D310F #0F4D31
tetradic
#310F4D #4D120F #2B4D0F #0F4A4D
square
#310F4D #4D120F #2B4D0F #0F4A4D
split-complementary
#310F4D #4A4D0F #0F4D12
monochromatic
#10051A #10051A #310F4D #521980 #7223B3

Accessibility & contrast

On white

16.08
#310F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310F4D
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F4D#FFFFFF#000000##FFFFFF
##310F4D1.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204F
Deuteranopia (green-blind)
#00214C
Tritanopia (blue-blind)
#2C1E2D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #310f4d;
/* rgb */ color: rgb(49, 15, 77);
/* oklch */ color: oklch(26.2% 0.108 304.9);
Tailwind
colors: {
  custom: {
    50: '#6c517f',
    500: '#310f4d',
    950: '#000000',
  },
}
SCSS
$custom: #310f4d;
$custom-light: #6c517f;
$custom-dark: #000000;
JSON
{
  "hex": "#310f4d",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 77
  },
  "hsl": {
    "h": 272.903,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26163,
    "c": 0.10793,
    "h": 304.9
  },
  "luminance": 0.0153
}

Semantic roles & 50–950 ramp

primary
#310F4D
secondary
#588731
accent
#EA3E8C
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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