#311558#311558

#311558 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.113 H 297.7°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#311558
RGBrgb(49, 21, 88)
HSLhsl(265, 61%, 21%)
HSVhsv(265, 76%, 35%)
CMYKcmyk(44.3%, 76.1%, 0%, 65.5%)
CIE-LABlab(14.92, 29.77, -35.15)
CIE-LCHlch(14.92, 46.07, 310.26°)
OKLaboklab(27.97% 0.0527 -0.1004)
OKLCHoklch(27.97% 0.113 297.7)
XYZxyz(3.2958, 1.8938, 9.4225)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311558 #3C5815
analogous
#151B58 #311558 #531558
triadic
#311558 #583115 #155831
tetradic
#311558 #58151B #3C5815 #155853
square
#311558 #58151B #3C5815 #155853
split-complementary
#311558 #585315 #1B5815
monochromatic
#0E0619 #150927 #311558 #4D2189 #682DBB

Accessibility & contrast

On white

15.23
#311558 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#311558 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311558
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311558#FFFFFF#000000##FFFFFF
##3115581.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#002557
Tritanopia (blue-blind)
#272635
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #311558;
/* rgb */ color: rgb(49, 21, 88);
/* oklch */ color: oklch(28.0% 0.113 297.7);
Tailwind
colors: {
  custom: {
    50: '#6d5588',
    500: '#311558',
    950: '#000000',
  },
}
SCSS
$custom: #311558;
$custom-light: #6d5588;
$custom-dark: #000000;
JSON
{
  "hex": "#311558",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 88
  },
  "hsl": {
    "h": 265.075,
    "s": 61.468,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27974,
    "c": 0.11339,
    "h": 297.7
  },
  "luminance": 0.01894
}

Semantic roles & 50–950 ramp

primary
#311558
secondary
#6B9039
accent
#E543A1
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311558

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

Preview Lab → · Contrast checker → · Palette generator →

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