#311338#311338

#311338 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.1% C 0.076 H 319.7°. Best body text is #FFFFFF at 16.40:1 contrast (WCAG AA passes).

Color values

HEX#311338
RGBrgb(49, 19, 56)
HSLhsl(289, 49%, 15%)
HSVhsv(289, 66%, 22%)
CMYKcmyk(12.5%, 66.1%, 0%, 78%)
CIE-LABlab(11.99, 22.15, -17.65)
CIE-LCHlch(11.99, 28.32, 321.45°)
OKLaboklab(25.06% 0.0579 -0.0491)
OKLCHoklch(25.06% 0.076 319.7)
XYZxyz(2.2132, 1.4043, 3.8951)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311338 #1A3813
analogous
#1F1338 #311338 #38132D
triadic
#311338 #383113 #133831
tetradic
#311338 #381F13 #1A3813 #132D38
square
#311338 #381F13 #1A3813 #132D38
split-complementary
#311338 #2D3813 #13381F
monochromatic
#140817 #140817 #311338 #592366 #813293

Accessibility & contrast

On white

16.40
#311338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#311338 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311338
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311338#FFFFFF#000000##FFFFFF
##3113381.0016.401.2816.40
#FFFFFF16.401.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1D39
Deuteranopia (green-blind)
#162137
Tritanopia (blue-blind)
#311923
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #311338;
/* rgb */ color: rgb(49, 19, 56);
/* oklch */ color: oklch(25.1% 0.076 319.7);
Tailwind
colors: {
  custom: {
    50: '#6a526f',
    500: '#311338',
    950: '#000000',
  },
}
SCSS
$custom: #311338;
$custom-light: #6a526f;
$custom-dark: #000000;
JSON
{
  "hex": "#311338",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 56
  },
  "hsl": {
    "h": 288.649,
    "s": 49.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.25063,
    "c": 0.07592,
    "h": 319.7
  },
  "luminance": 0.01404
}

Semantic roles & 50–950 ramp

primary
#311338
secondary
#417037
accent
#D94F69
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #311338

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

Preview Lab → · Contrast checker → · Palette generator →

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