#311146#311146

#311146 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.097 H 308.8°. Best body text is #FFFFFF at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#311146
RGBrgb(49, 17, 70)
HSLhsl(276, 61%, 17%)
HSVhsv(276, 76%, 27%)
CMYKcmyk(30%, 75.7%, 0%, 72.5%)
CIE-LABlab(12.58, 26.91, -26.60)
CIE-LCHlch(12.58, 37.84, 315.34°)
OKLaboklab(25.82% 0.0606 -0.0753)
OKLCHoklch(25.82% 0.097 308.8)
XYZxyz(2.5723, 1.4961, 5.9464)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311146 #264611
analogous
#161146 #311146 #461141
triadic
#311146 #463111 #114631
tetradic
#311146 #461611 #264611 #114146
square
#311146 #461611 #264611 #114146
split-complementary
#311146 #414611 #114616
monochromatic
#110619 #110619 #311146 #531D77 #7629A8

Accessibility & contrast

On white

16.16
#311146 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311146
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311146#FFFFFF#000000##FFFFFF
##3111461.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F48
Deuteranopia (green-blind)
#072145
Tritanopia (blue-blind)
#2E1C29
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #311146;
/* rgb */ color: rgb(49, 17, 70);
/* oklch */ color: oklch(25.8% 0.097 308.8);
Tailwind
colors: {
  custom: {
    50: '#6c527a',
    500: '#311146',
    950: '#000000',
  },
}
SCSS
$custom: #311146;
$custom-light: #6c527a;
$custom-dark: #000000;
JSON
{
  "hex": "#311146",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 70
  },
  "hsl": {
    "h": 276.226,
    "s": 60.92,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25822,
    "c": 0.09661,
    "h": 308.8
  },
  "luminance": 0.01496
}

Semantic roles & 50–950 ramp

primary
#311146
secondary
#518033
accent
#E44483
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #311146

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

Preview Lab → · Contrast checker → · Palette generator →

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