#311358#311358

#311358 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.7% C 0.116 H 298.2°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#311358
RGBrgb(49, 19, 88)
HSLhsl(266, 64%, 21%)
HSVhsv(266, 78%, 35%)
CMYKcmyk(44.3%, 78.4%, 0%, 65.5%)
CIE-LABlab(14.53, 30.86, -35.79)
CIE-LCHlch(14.53, 47.26, 310.78°)
OKLaboklab(27.7% 0.0549 -0.1023)
OKLCHoklch(27.7% 0.116 298.2)
XYZxyz(3.2605, 1.8232, 9.4108)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311358 #3A5813
analogous
#131758 #311358 #531358
triadic
#311358 #583113 #135831
tetradic
#311358 #581317 #3A5813 #135853
square
#311358 #581317 #3A5813 #135853
split-complementary
#311358 #585313 #175813
monochromatic
#0E0519 #150826 #311358 #4D1E8A #6929BD

Accessibility & contrast

On white

15.39
#311358 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#311358 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311358
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311358#FFFFFF#000000##FFFFFF
##3113581.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#002457
Tritanopia (blue-blind)
#272434
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #311358;
/* rgb */ color: rgb(49, 19, 88);
/* oklch */ color: oklch(27.7% 0.116 298.2);
Tailwind
colors: {
  custom: {
    50: '#6e5488',
    500: '#311358',
    950: '#000000',
  },
}
SCSS
$custom: #311358;
$custom-light: #6e5488;
$custom-dark: #000000;
JSON
{
  "hex": "#311358",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 88
  },
  "hsl": {
    "h": 266.087,
    "s": 64.486,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27699,
    "c": 0.11606,
    "h": 298.2
  },
  "luminance": 0.01823
}

Semantic roles & 50–950 ramp

primary
#311358
secondary
#699037
accent
#E7409F
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311358

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

Preview Lab → · Contrast checker → · Palette generator →

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