#311153#311153

#311153 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.113 H 301.2°. Best body text is #FFFFFF at 15.72:1 contrast (WCAG AA passes).

Color values

HEX#311153
RGBrgb(49, 17, 83)
HSLhsl(269, 66%, 20%)
HSVhsv(269, 80%, 33%)
CMYKcmyk(41%, 79.5%, 0%, 67.5%)
CIE-LABlab(13.70, 30.49, -33.75)
CIE-LCHlch(13.70, 45.48, 312.09°)
OKLaboklab(26.97% 0.0582 -0.0963)
OKLCHoklch(26.97% 0.113 301.2)
XYZxyz(3.0280, 1.6784, 8.3464)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311153 #335311
analogous
#111253 #311153 #521153
triadic
#311153 #533111 #115331
tetradic
#311153 #531112 #335311 #115352
square
#311153 #531112 #335311 #115352
split-complementary
#311153 #535211 #125311
monochromatic
#0F0519 #130720 #311153 #4F1B86 #6D26B9

Accessibility & contrast

On white

15.72
#311153 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311153
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311153#FFFFFF#000000##FFFFFF
##3111531.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002355
Deuteranopia (green-blind)
#002352
Tritanopia (blue-blind)
#2A2131
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #311153;
/* rgb */ color: rgb(49, 17, 83);
/* oklch */ color: oklch(27.0% 0.113 301.2);
Tailwind
colors: {
  custom: {
    50: '#6d5284',
    500: '#311153',
    950: '#000000',
  },
}
SCSS
$custom: #311153;
$custom-light: #6d5284;
$custom-dark: #000000;
JSON
{
  "hex": "#311153",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 83
  },
  "hsl": {
    "h": 269.091,
    "s": 66,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26968,
    "c": 0.11252,
    "h": 301.2
  },
  "luminance": 0.01678
}

Semantic roles & 50–950 ramp

primary
#311153
secondary
#618C34
accent
#E93F96
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #311153

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

Preview Lab → · Contrast checker → · Palette generator →

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