#310F4E#310F4E

#310F4E is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.3% C 0.109 H 304.4°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#310F4E
RGBrgb(49, 15, 78)
HSLhsl(272, 68%, 18%)
HSVhsv(272, 81%, 31%)
CMYKcmyk(37.2%, 80.8%, 0%, 69.4%)
CIE-LABlab(12.89, 30.12, -31.65)
CIE-LCHlch(12.89, 43.69, 313.59°)
OKLaboklab(26.25% 0.0616 -0.0901)
OKLCHoklch(26.25% 0.109 304.4)
XYZxyz(2.8123, 1.5447, 7.3562)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F4E #2C4E0F
analogous
#110F4E #310F4E #4E0F4B
triadic
#310F4E #4E310F #0F4E31
tetradic
#310F4E #4E110F #2C4E0F #0F4B4E
square
#310F4E #4E110F #2C4E0F #0F4B4E
split-complementary
#310F4E #4B4E0F #0F4E11
monochromatic
#10051A #11051B #310F4E #511981 #7123B5

Accessibility & contrast

On white

16.04
#310F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310F4E
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F4E#FFFFFF#000000##FFFFFF
##310F4E1.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002150
Deuteranopia (green-blind)
#00214D
Tritanopia (blue-blind)
#2B1E2D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #310f4e;
/* rgb */ color: rgb(49, 15, 78);
/* oklch */ color: oklch(26.3% 0.109 304.4);
Tailwind
colors: {
  custom: {
    50: '#6d5180',
    500: '#310f4e',
    950: '#000000',
  },
}
SCSS
$custom: #310f4e;
$custom-light: #6d5180;
$custom-dark: #000000;
JSON
{
  "hex": "#310f4e",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 78
  },
  "hsl": {
    "h": 272.381,
    "s": 67.742,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26254,
    "c": 0.10913,
    "h": 304.4
  },
  "luminance": 0.01545
}

Semantic roles & 50–950 ramp

primary
#310F4E
secondary
#598831
accent
#EB3D8D
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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