#311870#311870

#311870 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.140 H 288.2°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#311870
RGBrgb(49, 24, 112)
HSLhsl(257, 65%, 27%)
HSVhsv(257, 79%, 44%)
CMYKcmyk(56.3%, 78.6%, 0%, 56.1%)
CIE-LABlab(17.81, 35.38, -46.28)
CIE-LCHlch(17.81, 58.26, 307.39°)
OKLaboklab(30.73% 0.0437 -0.1331)
OKLCHoklch(30.73% 0.14 288.2)
XYZxyz(4.5170, 2.4759, 15.5660)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311870 #577018
analogous
#182B70 #311870 #5D1870
triadic
#311870 #703118 #187031
tetradic
#311870 #70182B #577018 #18705D
square
#311870 #70182B #577018 #18705D
split-complementary
#311870 #705D18 #2B7018
monochromatic
#0B0519 #1B0D3E #311870 #4723A2 #5E30D3

Accessibility & contrast

On white

14.04
#311870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#311870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311870
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311870#FFFFFF#000000##FFFFFF
##3118701.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D73
Deuteranopia (green-blind)
#00296E
Tritanopia (blue-blind)
#183043
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #311870;
/* rgb */ color: rgb(49, 24, 112);
/* oklch */ color: oklch(30.7% 0.140 288.2);
Tailwind
colors: {
  custom: {
    50: '#71589a',
    500: '#311870',
    950: '#000000',
  },
}
SCSS
$custom: #311870;
$custom-light: #71589a;
$custom-dark: #000000;
JSON
{
  "hex": "#311870",
  "rgb": {
    "r": 49,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 257.045,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30727,
    "c": 0.14009,
    "h": 288.2
  },
  "luminance": 0.02476
}

Semantic roles & 50–950 ramp

primary
#311870
secondary
#88A53E
accent
#E840B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #311870

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

Preview Lab → · Contrast checker → · Palette generator →

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