#311995#311995

#311995 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.184 H 279.8°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#311995
RGBrgb(49, 25, 149)
HSLhsl(252, 71%, 34%)
HSVhsv(252, 83%, 58%)
CMYKcmyk(67.1%, 83.2%, 0%, 41.6%)
CIE-LABlab(22.01, 46.13, -62.76)
CIE-LCHlch(22.01, 77.89, 306.32°)
OKLaboklab(34.85% 0.0314 -0.1812)
OKLCHoklch(34.85% 0.184 279.8)
XYZxyz(7.0373, 3.5176, 28.7361)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311995 #7D9519
analogous
#193F95 #311995 #6F1995
triadic
#311995 #953119 #199531
tetradic
#311995 #95193F #7D9519 #19956F
square
#311995 #95193F #7D9519 #19956F
split-complementary
#311995 #956F19 #3F9519
monochromatic
#0F072C #201061 #311995 #4222C9 #6648E0

Accessibility & contrast

On white

12.33
#311995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#311995 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311995
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311995#FFFFFF#000000##FFFFFF
##3119951.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003998
Deuteranopia (green-blind)
#003093
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #311995;
/* rgb */ color: rgb(49, 25, 149);
/* oklch */ color: oklch(34.8% 0.184 279.8);
Tailwind
colors: {
  custom: {
    50: '#785bb5',
    500: '#311995',
    950: '#000000',
  },
}
SCSS
$custom: #311995;
$custom-light: #785bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#311995",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 149
  },
  "hsl": {
    "h": 251.613,
    "s": 71.264,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34849,
    "c": 0.18388,
    "h": 279.8
  },
  "luminance": 0.03518
}

Semantic roles & 50–950 ramp

primary
#311995
secondary
#AAC248
accent
#EE3ACB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311995

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

Preview Lab → · Contrast checker → · Palette generator →

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