#310B4D#310B4D

#310B4D is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.7% C 0.113 H 305.8°. Best body text is #FFFFFF at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#310B4D
RGBrgb(49, 11, 77)
HSLhsl(275, 75%, 17%)
HSVhsv(275, 86%, 30%)
CMYKcmyk(36.4%, 85.7%, 0%, 69.8%)
CIE-LABlab(12.14, 31.73, -32.17)
CIE-LCHlch(12.14, 45.19, 314.61°)
OKLaboklab(25.7% 0.066 -0.0916)
OKLCHoklch(25.7% 0.113 305.8)
XYZxyz(2.7256, 1.4282, 7.1518)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B4D #274D0B
analogous
#100B4D #310B4D #4D0B48
triadic
#310B4D #4D310B #0B4D31
tetradic
#310B4D #4D100B #274D0B #0B484D
square
#310B4D #4D100B #274D0B #0B484D
split-complementary
#310B4D #484D0B #0B4D10
monochromatic
#11041B #11041B #310B4D #531383 #751AB8

Accessibility & contrast

On white

16.33
#310B4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#310B4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310B4D
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B4D#FFFFFF#000000##FFFFFF
##310B4D1.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4F
Deuteranopia (green-blind)
#00204C
Tritanopia (blue-blind)
#2C1C2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #310b4d;
/* rgb */ color: rgb(49, 11, 77);
/* oklch */ color: oklch(25.7% 0.113 305.8);
Tailwind
colors: {
  custom: {
    50: '#6d4f7f',
    500: '#310b4d',
    950: '#000000',
  },
}
SCSS
$custom: #310b4d;
$custom-light: #6d4f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#310b4d",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 77
  },
  "hsl": {
    "h": 274.545,
    "s": 75,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25701,
    "c": 0.11289,
    "h": 305.8
  },
  "luminance": 0.01428
}

Semantic roles & 50–950 ramp

primary
#310B4D
secondary
#53892B
accent
#F23686
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310B4D

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

Preview Lab → · Contrast checker → · Palette generator →

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