#311869#311869

#311869 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.131 H 290.3°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#311869
RGBrgb(49, 24, 105)
HSLhsl(259, 63%, 25%)
HSVhsv(259, 77%, 41%)
CMYKcmyk(53.3%, 77.1%, 0%, 58.8%)
CIE-LABlab(17.11, 33.23, -42.87)
CIE-LCHlch(17.11, 54.24, 307.78°)
OKLaboklab(30.02% 0.0456 -0.1231)
OKLCHoklch(30.02% 0.131 290.3)
XYZxyz(4.1423, 2.3260, 13.5926)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311869 #506918
analogous
#182769 #311869 #5A1869
triadic
#311869 #693118 #186931
tetradic
#311869 #691827 #506918 #18695A
square
#311869 #691827 #506918 #18695A
split-complementary
#311869 #695A18 #276918
monochromatic
#0C0619 #1A0D37 #311869 #48239B #5F2FCD

Accessibility & contrast

On white

14.33
#311869 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#311869 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311869
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311869#FFFFFF#000000##FFFFFF
##3118691.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311869;
/* rgb */ color: rgb(49, 24, 105);
/* oklch */ color: oklch(30.0% 0.131 290.3);
Tailwind
colors: {
  custom: {
    50: '#705795',
    500: '#311869',
    950: '#000000',
  },
}
SCSS
$custom: #311869;
$custom-light: #705795;
$custom-dark: #000000;
JSON
{
  "hex": "#311869",
  "rgb": {
    "r": 49,
    "g": 24,
    "b": 105
  },
  "hsl": {
    "h": 258.519,
    "s": 62.791,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30024,
    "c": 0.13125,
    "h": 290.3
  },
  "luminance": 0.02326
}

Semantic roles & 50–950 ramp

primary
#311869
secondary
#819F3E
accent
#E642B3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311869

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

Preview Lab → · Contrast checker → · Palette generator →

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