#311975#311975

#311975 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.145 H 286.6°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#311975
RGBrgb(49, 25, 117)
HSLhsl(256, 65%, 28%)
HSVhsv(256, 79%, 46%)
CMYKcmyk(58.1%, 78.6%, 0%, 54.1%)
CIE-LABlab(18.51, 36.39, -48.37)
CIE-LCHlch(18.51, 60.53, 306.96°)
OKLaboklab(31.37% 0.0414 -0.1392)
OKLCHoklch(31.37% 0.145 286.6)
XYZxyz(4.8242, 2.6323, 17.0801)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311975 #5D7519
analogous
#192F75 #311975 #5F1975
triadic
#311975 #753119 #197531
tetradic
#311975 #75192F #5D7519 #19755F
square
#311975 #75192F #5D7519 #19755F
split-complementary
#311975 #755F19 #2F7519
monochromatic
#0B0519 #1C0E43 #311975 #4624A7 #5E35D4

Accessibility & contrast

On white

13.76
#311975 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#311975 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311975
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311975#FFFFFF#000000##FFFFFF
##3119751.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F78
Deuteranopia (green-blind)
#002A73
Tritanopia (blue-blind)
#123346
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #311975;
/* rgb */ color: rgb(49, 25, 117);
/* oklch */ color: oklch(31.4% 0.145 286.6);
Tailwind
colors: {
  custom: {
    50: '#72599e',
    500: '#311975',
    950: '#000000',
  },
}
SCSS
$custom: #311975;
$custom-light: #72599e;
$custom-dark: #000000;
JSON
{
  "hex": "#311975",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 117
  },
  "hsl": {
    "h": 255.652,
    "s": 64.789,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31372,
    "c": 0.14525,
    "h": 286.6
  },
  "luminance": 0.02633
}

Semantic roles & 50–950 ramp

primary
#311975
secondary
#8EAA40
accent
#E840BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311975

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

Preview Lab → · Contrast checker → · Palette generator →

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