#311B65#311B65

#311B65 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.1% C 0.122 H 290.8°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#311B65
RGBrgb(49, 27, 101)
HSLhsl(258, 58%, 25%)
HSVhsv(258, 73%, 40%)
CMYKcmyk(51.5%, 73.3%, 0%, 60.4%)
CIE-LABlab(17.35, 30.27, -39.85)
CIE-LCHlch(17.35, 50.04, 307.22°)
OKLaboklab(30.08% 0.0435 -0.1143)
OKLCHoklch(30.08% 0.122 290.8)
XYZxyz(4.0069, 2.3763, 12.5569)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311B65 #4F651B
analogous
#1B2A65 #311B65 #561B65
triadic
#311B65 #65311B #1B6531
tetradic
#311B65 #651B2A #4F651B #1B6556
square
#311B65 #651B2A #4F651B #1B6556
split-complementary
#311B65 #65561B #2A651B
monochromatic
#0C0618 #1A0E35 #311B65 #482895 #6035C6

Accessibility & contrast

On white

14.24
#311B65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#311B65 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311B65
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311B65#FFFFFF#000000##FFFFFF
##311B651.0014.241.4814.24
#FFFFFF14.241.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C67
Deuteranopia (green-blind)
#002964
Tritanopia (blue-blind)
#202E3D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #311b65;
/* rgb */ color: rgb(49, 27, 101);
/* oklch */ color: oklch(30.1% 0.122 290.8);
Tailwind
colors: {
  custom: {
    50: '#6f5992',
    500: '#311b65',
    950: '#000000',
  },
}
SCSS
$custom: #311b65;
$custom-light: #6f5992;
$custom-dark: #000000;
JSON
{
  "hex": "#311b65",
  "rgb": {
    "r": 49,
    "g": 27,
    "b": 101
  },
  "hsl": {
    "h": 257.838,
    "s": 57.813,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30075,
    "c": 0.12224,
    "h": 290.8
  },
  "luminance": 0.02376
}

Semantic roles & 50–950 ramp

primary
#311B65
secondary
#809A41
accent
#E147B3
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311B65

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

Preview Lab → · Contrast checker → · Palette generator →

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