#311343#311343

#311343 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.090 H 310.4°. Best body text is #FFFFFF at 16.09:1 contrast (WCAG AA passes).

Color values

HEX#311343
RGBrgb(49, 19, 67)
HSLhsl(278, 56%, 17%)
HSVhsv(278, 72%, 26%)
CMYKcmyk(26.9%, 71.6%, 0%, 73.7%)
CIE-LABlab(12.76, 24.98, -24.22)
CIE-LCHlch(12.76, 34.79, 315.89°)
OKLaboklab(25.87% 0.0581 -0.0683)
OKLCHoklch(25.87% 0.09 310.4)
XYZxyz(2.5124, 1.5240, 5.4709)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311343 #254313
analogous
#191343 #311343 #43133D
triadic
#311343 #433113 #134331
tetradic
#311343 #431913 #254313 #133D43
square
#311343 #431913 #254313 #133D43
split-complementary
#311343 #3D4313 #134319
monochromatic
#110718 #110718 #311343 #542173 #772EA2

Accessibility & contrast

On white

16.09
#311343 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#311343 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311343
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311343#FFFFFF#000000##FFFFFF
##3113431.0016.091.3016.09
#FFFFFF16.091.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002044
Deuteranopia (green-blind)
#0D2242
Tritanopia (blue-blind)
#2F1C29
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #311343;
/* rgb */ color: rgb(49, 19, 67);
/* oklch */ color: oklch(25.9% 0.090 310.4);
Tailwind
colors: {
  custom: {
    50: '#6b5377',
    500: '#311343',
    950: '#000000',
  },
}
SCSS
$custom: #311343;
$custom-light: #6b5377;
$custom-dark: #000000;
JSON
{
  "hex": "#311343",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 67
  },
  "hsl": {
    "h": 277.5,
    "s": 55.814,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25874,
    "c": 0.08965,
    "h": 310.4
  },
  "luminance": 0.01524
}

Semantic roles & 50–950 ramp

primary
#311343
secondary
#507C36
accent
#DF4981
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #311343

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

Preview Lab → · Contrast checker → · Palette generator →

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