#311359#311359

#311359 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.8% C 0.117 H 297.7°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#311359
RGBrgb(49, 19, 89)
HSLhsl(266, 65%, 21%)
HSVhsv(266, 79%, 35%)
CMYKcmyk(44.9%, 78.7%, 0%, 65.1%)
CIE-LABlab(14.62, 31.15, -36.31)
CIE-LCHlch(14.62, 47.84, 310.63°)
OKLaboklab(27.79% 0.0546 -0.1038)
OKLCHoklch(27.79% 0.117 297.7)
XYZxyz(3.3022, 1.8399, 9.6304)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311359 #3B5913
analogous
#131859 #311359 #541359
triadic
#311359 #593113 #135931
tetradic
#311359 #591318 #3B5913 #135954
square
#311359 #591318 #3B5913 #135954
split-complementary
#311359 #595413 #185913
monochromatic
#0E0519 #150827 #311359 #4D1E8B #6929BE

Accessibility & contrast

On white

15.35
#311359 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#311359 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311359
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311359#FFFFFF#000000##FFFFFF
##3113591.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255B
Deuteranopia (green-blind)
#002458
Tritanopia (blue-blind)
#272535
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #311359;
/* rgb */ color: rgb(49, 19, 89);
/* oklch */ color: oklch(27.8% 0.117 297.7);
Tailwind
colors: {
  custom: {
    50: '#6e5489',
    500: '#311359',
    950: '#000000',
  },
}
SCSS
$custom: #311359;
$custom-light: #6e5489;
$custom-dark: #000000;
JSON
{
  "hex": "#311359",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 89
  },
  "hsl": {
    "h": 265.714,
    "s": 64.815,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27793,
    "c": 0.11731,
    "h": 297.7
  },
  "luminance": 0.0184
}

Semantic roles & 50–950 ramp

primary
#311359
secondary
#6A9137
accent
#E840A0
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311359

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

Preview Lab → · Contrast checker → · Palette generator →

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