#311C8F#311C8F

#311C8F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.174 H 280.5°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#311C8F
RGBrgb(49, 28, 143)
HSLhsl(251, 67%, 34%)
HSVhsv(251, 80%, 56%)
CMYKcmyk(65.7%, 80.4%, 0%, 43.9%)
CIE-LABlab(21.82, 42.88, -59.35)
CIE-LCHlch(21.82, 73.22, 305.85°)
OKLaboklab(34.52% 0.0317 -0.1713)
OKLCHoklch(34.52% 0.174 280.5)
XYZxyz(6.6382, 3.4661, 26.3005)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311C8F #7A8F1C
analogous
#1C408F #311C8F #6A1C8F
triadic
#311C8F #8F311C #1C8F31
tetradic
#311C8F #8F1C40 #7A8F1C #1C8F6A
square
#311C8F #8F1C40 #7A8F1C #1C8F6A
split-complementary
#311C8F #8F6A1C #408F1C
monochromatic
#0E0829 #1F125C #311C8F #4326C2 #644ADC

Accessibility & contrast

On white

12.40
#311C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#311C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311C8F
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311C8F#FFFFFF#000000##FFFFFF
##311C8F1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #311c8f;
/* rgb */ color: rgb(49, 28, 143);
/* oklch */ color: oklch(34.5% 0.174 280.5);
Tailwind
colors: {
  custom: {
    50: '#775cb1',
    500: '#311c8f',
    950: '#000000',
  },
}
SCSS
$custom: #311c8f;
$custom-light: #775cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#311c8f",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 250.957,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34521,
    "c": 0.17421,
    "h": 280.5
  },
  "luminance": 0.03467
}

Semantic roles & 50–950 ramp

primary
#311C8F
secondary
#A8BE49
accent
#EA3ECB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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