#311767#311767

#311767 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.130 H 291.2°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#311767
RGBrgb(49, 23, 103)
HSLhsl(260, 63%, 25%)
HSVhsv(260, 78%, 40%)
CMYKcmyk(52.4%, 77.7%, 0%, 59.6%)
CIE-LABlab(16.72, 33.17, -42.19)
CIE-LCHlch(16.72, 53.67, 308.17°)
OKLaboklab(29.69% 0.047 -0.1211)
OKLCHoklch(29.69% 0.13 291.2)
XYZxyz(4.0205, 2.2449, 13.0508)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311767 #4D6717
analogous
#172567 #311767 #591767
triadic
#311767 #673117 #176731
tetradic
#311767 #671725 #4D6717 #176759
square
#311767 #671725 #4D6717 #176759
split-complementary
#311767 #675917 #256717
monochromatic
#0C0619 #190C35 #311767 #492299 #612DCB

Accessibility & contrast

On white

14.49
#311767 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#311767 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311767
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311767#FFFFFF#000000##FFFFFF
##3117671.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B69
Deuteranopia (green-blind)
#002865
Tritanopia (blue-blind)
#1F2C3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #311767;
/* rgb */ color: rgb(49, 23, 103);
/* oklch */ color: oklch(29.7% 0.130 291.2);
Tailwind
colors: {
  custom: {
    50: '#705793',
    500: '#311767',
    950: '#000000',
  },
}
SCSS
$custom: #311767;
$custom-light: #705793;
$custom-dark: #000000;
JSON
{
  "hex": "#311767",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 103
  },
  "hsl": {
    "h": 259.5,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29689,
    "c": 0.12992,
    "h": 291.2
  },
  "luminance": 0.02245
}

Semantic roles & 50–950 ramp

primary
#311767
secondary
#7E9D3D
accent
#E741B1
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311767

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

Preview Lab → · Contrast checker → · Palette generator →

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