#311154#311154

#311154 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.114 H 300.6°. Best body text is #FFFFFF at 15.69:1 contrast (WCAG AA passes).

Color values

HEX#311154
RGBrgb(49, 17, 84)
HSLhsl(269, 66%, 20%)
HSVhsv(269, 80%, 33%)
CMYKcmyk(41.7%, 79.8%, 0%, 67.1%)
CIE-LABlab(13.79, 30.77, -34.28)
CIE-LCHlch(13.79, 46.07, 311.91°)
OKLaboklab(27.06% 0.058 -0.0979)
OKLCHoklch(27.06% 0.114 300.6)
XYZxyz(3.0669, 1.6939, 8.5512)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311154 #345411
analogous
#111254 #311154 #531154
triadic
#311154 #543111 #115431
tetradic
#311154 #541112 #345411 #115453
square
#311154 #541112 #345411 #115453
split-complementary
#311154 #545311 #125411
monochromatic
#0F0519 #130721 #311154 #4F1B87 #6C26BA

Accessibility & contrast

On white

15.69
#311154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#311154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311154
15.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311154#FFFFFF#000000##FFFFFF
##3111541.0015.691.3415.69
#FFFFFF15.691.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002356
Deuteranopia (green-blind)
#002353
Tritanopia (blue-blind)
#292231
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #311154;
/* rgb */ color: rgb(49, 17, 84);
/* oklch */ color: oklch(27.1% 0.114 300.6);
Tailwind
colors: {
  custom: {
    50: '#6d5285',
    500: '#311154',
    950: '#000000',
  },
}
SCSS
$custom: #311154;
$custom-light: #6d5285;
$custom-dark: #000000;
JSON
{
  "hex": "#311154",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 84
  },
  "hsl": {
    "h": 268.657,
    "s": 66.337,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27061,
    "c": 0.11373,
    "h": 300.6
  },
  "luminance": 0.01694
}

Semantic roles & 50–950 ramp

primary
#311154
secondary
#628D34
accent
#E93F98
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #311154

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

Preview Lab → · Contrast checker → · Palette generator →

#311154 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva