#311769#311769

#311769 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.132 H 290.5°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#311769
RGBrgb(49, 23, 105)
HSLhsl(259, 64%, 25%)
HSVhsv(259, 78%, 41%)
CMYKcmyk(53.3%, 78.1%, 0%, 58.8%)
CIE-LABlab(16.92, 33.78, -43.18)
CIE-LCHlch(16.92, 54.82, 308.03°)
OKLaboklab(29.89% 0.0465 -0.124)
OKLCHoklch(29.89% 0.132 290.5)
XYZxyz(4.1221, 2.2855, 13.5858)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311769 #4F6917
analogous
#172669 #311769 #5A1769
triadic
#311769 #693117 #176931
tetradic
#311769 #691726 #4F6917 #17695A
square
#311769 #691726 #4F6917 #17695A
split-complementary
#311769 #695A17 #266917
monochromatic
#0C0519 #1A0C37 #311769 #48229B #602DCD

Accessibility & contrast

On white

14.41
#311769 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#311769 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311769
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311769#FFFFFF#000000##FFFFFF
##3117691.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6B
Deuteranopia (green-blind)
#002867
Tritanopia (blue-blind)
#1E2D3F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #311769;
/* rgb */ color: rgb(49, 23, 105);
/* oklch */ color: oklch(29.9% 0.132 290.5);
Tailwind
colors: {
  custom: {
    50: '#705795',
    500: '#311769',
    950: '#000000',
  },
}
SCSS
$custom: #311769;
$custom-light: #705795;
$custom-dark: #000000;
JSON
{
  "hex": "#311769",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 105
  },
  "hsl": {
    "h": 259.024,
    "s": 64.063,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29887,
    "c": 0.13243,
    "h": 290.5
  },
  "luminance": 0.02286
}

Semantic roles & 50–950 ramp

primary
#311769
secondary
#809F3D
accent
#E741B2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311769

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

Preview Lab → · Contrast checker → · Palette generator →

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