#311873#311873

#311873 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.144 H 287.3°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#311873
RGBrgb(49, 24, 115)
HSLhsl(256, 65%, 27%)
HSVhsv(256, 79%, 45%)
CMYKcmyk(57.4%, 79.1%, 0%, 54.9%)
CIE-LABlab(18.12, 36.30, -47.72)
CIE-LCHlch(18.12, 59.96, 307.26°)
OKLaboklab(31.04% 0.0428 -0.1373)
OKLCHoklch(31.04% 0.144 287.3)
XYZxyz(4.6868, 2.5438, 16.4604)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311873 #5A7318
analogous
#182C73 #311873 #5F1873
triadic
#311873 #733118 #187331
tetradic
#311873 #73182C #5A7318 #18735F
square
#311873 #73182C #5A7318 #18735F
split-complementary
#311873 #735F18 #2C7318
monochromatic
#0B0519 #1B0D40 #311873 #4723A6 #5E31D4

Accessibility & contrast

On white

13.92
#311873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#311873 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311873
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311873#FFFFFF#000000##FFFFFF
##3118731.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002A71
Tritanopia (blue-blind)
#143244
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #311873;
/* rgb */ color: rgb(49, 24, 115);
/* oklch */ color: oklch(31.0% 0.144 287.3);
Tailwind
colors: {
  custom: {
    50: '#72589c',
    500: '#311873',
    950: '#000000',
  },
}
SCSS
$custom: #311873;
$custom-light: #72589c;
$custom-dark: #000000;
JSON
{
  "hex": "#311873",
  "rgb": {
    "r": 49,
    "g": 24,
    "b": 115
  },
  "hsl": {
    "h": 256.484,
    "s": 65.468,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31035,
    "c": 0.14384,
    "h": 287.3
  },
  "luminance": 0.02544
}

Semantic roles & 50–950 ramp

primary
#311873
secondary
#8BA83F
accent
#E83FBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #311873

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

Preview Lab → · Contrast checker → · Palette generator →

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