#311759#311759

#311759 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.112 H 296.6°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#311759
RGBrgb(49, 23, 89)
HSLhsl(264, 59%, 22%)
HSVhsv(264, 74%, 35%)
CMYKcmyk(44.9%, 74.2%, 0%, 65.1%)
CIE-LABlab(15.42, 28.93, -35.01)
CIE-LCHlch(15.42, 45.42, 309.56°)
OKLaboklab(28.36% 0.0502 -0.1)
OKLCHoklch(28.36% 0.112 296.6)
XYZxyz(3.3757, 1.9870, 9.6549)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311759 #3F5917
analogous
#171E59 #311759 #521759
triadic
#311759 #593117 #175931
tetradic
#311759 #59171E #3F5917 #175952
square
#311759 #59171E #3F5917 #175952
split-complementary
#311759 #595217 #1E5917
monochromatic
#0D0618 #160A28 #311759 #4C248A #6730BA

Accessibility & contrast

On white

15.03
#311759 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#311759 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311759
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311759#FFFFFF#000000##FFFFFF
##3117591.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275B
Deuteranopia (green-blind)
#002658
Tritanopia (blue-blind)
#272736
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #311759;
/* rgb */ color: rgb(49, 23, 89);
/* oklch */ color: oklch(28.4% 0.112 296.6);
Tailwind
colors: {
  custom: {
    50: '#6d5688',
    500: '#311759',
    950: '#000000',
  },
}
SCSS
$custom: #311759;
$custom-light: #6d5688;
$custom-dark: #000000;
JSON
{
  "hex": "#311759",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 89
  },
  "hsl": {
    "h": 263.636,
    "s": 58.929,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28358,
    "c": 0.11191,
    "h": 296.6
  },
  "luminance": 0.01987
}

Semantic roles & 50–950 ramp

primary
#311759
secondary
#6F903C
accent
#E246A4
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311759

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

Preview Lab → · Contrast checker → · Palette generator →

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