#311148#311148

#311148 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.099 H 307.5°. Best body text is #FFFFFF at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#311148
RGBrgb(49, 17, 72)
HSLhsl(275, 62%, 17%)
HSVhsv(275, 76%, 28%)
CMYKcmyk(31.9%, 76.4%, 0%, 71.8%)
CIE-LABlab(12.75, 27.45, -27.73)
CIE-LCHlch(12.75, 39.02, 314.71°)
OKLaboklab(25.99% 0.0603 -0.0786)
OKLCHoklch(25.99% 0.099 307.5)
XYZxyz(2.6365, 1.5218, 6.2845)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311148 #284811
analogous
#151148 #311148 #481144
triadic
#311148 #483111 #114831
tetradic
#311148 #481511 #284811 #114448
square
#311148 #481511 #284811 #114448
split-complementary
#311148 #444811 #114815
monochromatic
#110619 #110619 #311148 #531D7A #7428AB

Accessibility & contrast

On white

16.10
#311148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311148
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311148#FFFFFF#000000##FFFFFF
##3111481.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204A
Deuteranopia (green-blind)
#042147
Tritanopia (blue-blind)
#2D1D2B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #311148;
/* rgb */ color: rgb(49, 17, 72);
/* oklch */ color: oklch(26.0% 0.099 307.5);
Tailwind
colors: {
  custom: {
    50: '#6c527b',
    500: '#311148',
    950: '#000000',
  },
}
SCSS
$custom: #311148;
$custom-light: #6c527b;
$custom-dark: #000000;
JSON
{
  "hex": "#311148",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 72
  },
  "hsl": {
    "h": 274.909,
    "s": 61.798,
    "l": 17.451
  },
  "oklch": {
    "l": 0.2599,
    "c": 0.09907,
    "h": 307.5
  },
  "luminance": 0.01522
}

Semantic roles & 50–950 ramp

primary
#311148
secondary
#548233
accent
#E54387
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #311148

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

Preview Lab → · Contrast checker → · Palette generator →

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