#311155#311155

#311155 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.115 H 300.1°. Best body text is #FFFFFF at 15.65:1 contrast (WCAG AA passes).

Color values

HEX#311155
RGBrgb(49, 17, 85)
HSLhsl(268, 67%, 20%)
HSVhsv(268, 80%, 33%)
CMYKcmyk(42.4%, 80%, 0%, 66.7%)
CIE-LABlab(13.88, 31.05, -34.81)
CIE-LCHlch(13.88, 46.65, 311.73°)
OKLaboklab(27.16% 0.0577 -0.0994)
OKLCHoklch(27.16% 0.115 300.1)
XYZxyz(3.1064, 1.7097, 8.7589)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311155 #355511
analogous
#111355 #311155 #531155
triadic
#311155 #553111 #115531
tetradic
#311155 #551113 #355511 #115553
square
#311155 #551113 #355511 #115553
split-complementary
#311155 #555311 #135511
monochromatic
#0F051A #140722 #311155 #4E1B88 #6C25BB

Accessibility & contrast

On white

15.65
#311155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311155
15.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311155#FFFFFF#000000##FFFFFF
##3111551.0015.651.3415.65
#FFFFFF15.651.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002357
Deuteranopia (green-blind)
#002354
Tritanopia (blue-blind)
#292232
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #311155;
/* rgb */ color: rgb(49, 17, 85);
/* oklch */ color: oklch(27.2% 0.115 300.1);
Tailwind
colors: {
  custom: {
    50: '#6d5285',
    500: '#311155',
    950: '#000000',
  },
}
SCSS
$custom: #311155;
$custom-light: #6d5285;
$custom-dark: #000000;
JSON
{
  "hex": "#311155",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 85
  },
  "hsl": {
    "h": 268.235,
    "s": 66.667,
    "l": 20
  },
  "oklch": {
    "l": 0.27155,
    "c": 0.11495,
    "h": 300.1
  },
  "luminance": 0.0171
}

Semantic roles & 50–950 ramp

primary
#311155
secondary
#648E34
accent
#EA3E99
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #311155

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

Preview Lab → · Contrast checker → · Palette generator →

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