#310B4E#310B4E

#310B4E is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.8% C 0.114 H 305.2°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#310B4E
RGBrgb(49, 11, 78)
HSLhsl(274, 75%, 17%)
HSVhsv(274, 86%, 31%)
CMYKcmyk(37.2%, 85.9%, 0%, 69.4%)
CIE-LABlab(12.24, 31.99, -32.71)
CIE-LCHlch(12.24, 45.75, 314.36°)
OKLaboklab(25.8% 0.0657 -0.0932)
OKLCHoklch(25.8% 0.114 305.2)
XYZxyz(2.7611, 1.4424, 7.3392)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B4E #284E0B
analogous
#100B4E #310B4E #4E0B49
triadic
#310B4E #4E310B #0B4E31
tetradic
#310B4E #4E100B #284E0B #0B494E
square
#310B4E #4E100B #284E0B #0B494E
split-complementary
#310B4E #494E0B #0B4E10
monochromatic
#11041B #11041B #310B4E #531384 #741AB9

Accessibility & contrast

On white

16.30
#310B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310B4E
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B4E#FFFFFF#000000##FFFFFF
##310B4E1.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F50
Deuteranopia (green-blind)
#00204D
Tritanopia (blue-blind)
#2C1D2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #310b4e;
/* rgb */ color: rgb(49, 11, 78);
/* oklch */ color: oklch(25.8% 0.114 305.2);
Tailwind
colors: {
  custom: {
    50: '#6d4f80',
    500: '#310b4e',
    950: '#000000',
  },
}
SCSS
$custom: #310b4e;
$custom-light: #6d4f80;
$custom-dark: #000000;
JSON
{
  "hex": "#310b4e",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 78
  },
  "hsl": {
    "h": 274.03,
    "s": 75.281,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25795,
    "c": 0.11401,
    "h": 305.2
  },
  "luminance": 0.01442
}

Semantic roles & 50–950 ramp

primary
#310B4E
secondary
#548A2B
accent
#F23687
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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