#310F4B#310F4B

#310F4B is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.106 H 306.1°. Best body text is #FFFFFF at 16.15:1 contrast (WCAG AA passes).

Color values

HEX#310F4B
RGBrgb(49, 15, 75)
HSLhsl(274, 67%, 18%)
HSVhsv(274, 80%, 29%)
CMYKcmyk(34.7%, 80%, 0%, 70.6%)
CIE-LABlab(12.62, 29.32, -30.01)
CIE-LCHlch(12.62, 41.95, 314.33°)
OKLaboklab(25.98% 0.0622 -0.0853)
OKLCHoklch(25.98% 0.106 306.1)
XYZxyz(2.7072, 1.5026, 6.8027)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F4B #294B0F
analogous
#130F4B #310F4B #4B0F47
triadic
#310F4B #4B310F #0F4B31
tetradic
#310F4B #4B130F #294B0F #0F474B
square
#310F4B #4B130F #294B0F #0F474B
split-complementary
#310F4B #474B0F #0F4B13
monochromatic
#11051A #11051A #310F4B #52197E #7423B1

Accessibility & contrast

On white

16.15
#310F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#310F4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310F4B
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F4B#FFFFFF#000000##FFFFFF
##310F4B1.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204D
Deuteranopia (green-blind)
#00214A
Tritanopia (blue-blind)
#2C1D2C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #310f4b;
/* rgb */ color: rgb(49, 15, 75);
/* oklch */ color: oklch(26.0% 0.106 306.1);
Tailwind
colors: {
  custom: {
    50: '#6c517e',
    500: '#310f4b',
    950: '#000000',
  },
}
SCSS
$custom: #310f4b;
$custom-light: #6c517e;
$custom-dark: #000000;
JSON
{
  "hex": "#310f4b",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 75
  },
  "hsl": {
    "h": 274,
    "s": 66.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25984,
    "c": 0.10556,
    "h": 306.1
  },
  "luminance": 0.01503
}

Semantic roles & 50–950 ramp

primary
#310F4B
secondary
#558530
accent
#EA3E88
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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