#311B60#311B60

#311B60 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.6% C 0.116 H 292.6°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#311B60
RGBrgb(49, 27, 96)
HSLhsl(259, 56%, 24%)
HSVhsv(259, 72%, 38%)
CMYKcmyk(49%, 71.9%, 0%, 62.4%)
CIE-LABlab(16.90, 28.70, -37.28)
CIE-LCHlch(16.90, 47.05, 307.59°)
OKLaboklab(29.61% 0.0443 -0.1067)
OKLCHoklch(29.61% 0.116 292.6)
XYZxyz(3.7693, 2.2812, 11.3058)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311B60 #4A601B
analogous
#1B2860 #311B60 #541B60
triadic
#311B60 #60311B #1B6031
tetradic
#311B60 #601B28 #4A601B #1B6054
square
#311B60 #601B28 #4A601B #1B6054
split-complementary
#311B60 #60541B #28601B
monochromatic
#0C0718 #190E30 #311B60 #492890 #6236C0

Accessibility & contrast

On white

14.42
#311B60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#311B60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311B60
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311B60#FFFFFF#000000##FFFFFF
##311B601.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B62
Deuteranopia (green-blind)
#00285F
Tritanopia (blue-blind)
#232C3B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #311b60;
/* rgb */ color: rgb(49, 27, 96);
/* oklch */ color: oklch(29.6% 0.116 292.6);
Tailwind
colors: {
  custom: {
    50: '#6e598e',
    500: '#311b60',
    950: '#000000',
  },
}
SCSS
$custom: #311b60;
$custom-light: #6e598e;
$custom-dark: #000000;
JSON
{
  "hex": "#311b60",
  "rgb": {
    "r": 49,
    "g": 27,
    "b": 96
  },
  "hsl": {
    "h": 259.13,
    "s": 56.098,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29612,
    "c": 0.11556,
    "h": 292.6
  },
  "luminance": 0.02281
}

Semantic roles & 50–950 ramp

primary
#311B60
secondary
#7B9641
accent
#DF48AF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #311B60

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

Preview Lab → · Contrast checker → · Palette generator →

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