#311D70#311D70

#311D70 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.134 H 287.0°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#311D70
RGBrgb(49, 29, 112)
HSLhsl(254, 59%, 28%)
HSVhsv(254, 74%, 44%)
CMYKcmyk(56.3%, 74.1%, 0%, 56.1%)
CIE-LABlab(18.81, 32.58, -44.65)
CIE-LCHlch(18.81, 55.27, 306.12°)
OKLaboklab(31.43% 0.0392 -0.1284)
OKLCHoklch(31.43% 0.134 287)
XYZxyz(4.6297, 2.7013, 15.6035)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311D70 #5C701D
analogous
#1D3270 #311D70 #5A1D70
triadic
#311D70 #70311D #1D7031
tetradic
#311D70 #701D32 #5C701D #1D705A
square
#311D70 #701D32 #5C701D #1D705A
split-complementary
#311D70 #705A1D #32701D
monochromatic
#0B0618 #1C103F #311D70 #462AA1 #5E3BCC

Accessibility & contrast

On white

13.63
#311D70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#311D70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311D70
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311D70#FFFFFF#000000##FFFFFF
##311D701.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003072
Deuteranopia (green-blind)
#002B6E
Tritanopia (blue-blind)
#173344
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #311d70;
/* rgb */ color: rgb(49, 29, 112);
/* oklch */ color: oklch(31.4% 0.134 287.0);
Tailwind
colors: {
  custom: {
    50: '#715b9a',
    500: '#311d70',
    950: '#000000',
  },
}
SCSS
$custom: #311d70;
$custom-light: #715b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#311d70",
  "rgb": {
    "r": 49,
    "g": 29,
    "b": 112
  },
  "hsl": {
    "h": 254.458,
    "s": 58.865,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31432,
    "c": 0.13421,
    "h": 287
  },
  "luminance": 0.02702
}

Semantic roles & 50–950 ramp

primary
#311D70
secondary
#8DA444
accent
#E246BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #311D70

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

Preview Lab → · Contrast checker → · Palette generator →

#311D70 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva