#311F7D#311F7D

#311F7D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.149 H 283.4°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#311F7D
RGBrgb(49, 31, 125)
HSLhsl(251, 60%, 31%)
HSVhsv(251, 75%, 49%)
CMYKcmyk(60.8%, 75.2%, 0%, 51%)
CIE-LABlab(20.49, 35.60, -50.22)
CIE-LCHlch(20.49, 61.56, 305.33°)
OKLaboklab(33.02% 0.0345 -0.1447)
OKLCHoklch(33.02% 0.149 283.4)
XYZxyz(5.4571, 3.1133, 19.7114)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311F7D #6B7D1F
analogous
#1F3C7D #311F7D #601F7D
triadic
#311F7D #7D311F #1F7D31
tetradic
#311F7D #7D1F3C #6B7D1F #1F7D60
square
#311F7D #7D1F3C #6B7D1F #1F7D60
split-complementary
#311F7D #7D601F #3C7D1F
monochromatic
#0B071B #1E134C #311F7D #442BAE #6045D1

Accessibility & contrast

On white

12.94
#311F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#311F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311F7D
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311F7D#FFFFFF#000000##FFFFFF
##311F7D1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#03394C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #311f7d;
/* rgb */ color: rgb(49, 31, 125);
/* oklch */ color: oklch(33.0% 0.149 283.4);
Tailwind
colors: {
  custom: {
    50: '#735da4',
    500: '#311f7d',
    950: '#000000',
  },
}
SCSS
$custom: #311f7d;
$custom-light: #735da4;
$custom-dark: #000000;
JSON
{
  "hex": "#311f7d",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 251.489,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33019,
    "c": 0.14875,
    "h": 283.4
  },
  "luminance": 0.03114
}

Semantic roles & 50–950 ramp

primary
#311F7D
secondary
#9CB048
accent
#E344C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #311F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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