#31195D#31195D

#31195D is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.0% C 0.114 H 294.3°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#31195D
RGBrgb(49, 25, 93)
HSLhsl(261, 58%, 23%)
HSVhsv(261, 73%, 36%)
CMYKcmyk(47.3%, 73.1%, 0%, 63.5%)
CIE-LABlab(16.20, 28.97, -36.43)
CIE-LCHlch(16.20, 46.54, 308.50°)
OKLaboklab(29.03% 0.0471 -0.1042)
OKLCHoklch(29.03% 0.114 294.3)
XYZxyz(3.5895, 2.1384, 10.5774)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31195D #455D19
analogous
#19235D #31195D #53195D
triadic
#31195D #5D3119 #195D31
tetradic
#31195D #5D1923 #455D19 #195D53
square
#31195D #5D1923 #455D19 #195D53
split-complementary
#31195D #5D5319 #235D19
monochromatic
#0D0618 #180C2D #31195D #4A268D #6433BD

Accessibility & contrast

On white

14.71
#31195D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#31195D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31195D
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31195D#FFFFFF#000000##FFFFFF
##31195D1.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295F
Deuteranopia (green-blind)
#00275C
Tritanopia (blue-blind)
#252A38
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #31195d;
/* rgb */ color: rgb(49, 25, 93);
/* oklch */ color: oklch(29.0% 0.114 294.3);
Tailwind
colors: {
  custom: {
    50: '#6e588b',
    500: '#31195d',
    950: '#000000',
  },
}
SCSS
$custom: #31195d;
$custom-light: #6e588b;
$custom-dark: #000000;
JSON
{
  "hex": "#31195d",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 93
  },
  "hsl": {
    "h": 261.176,
    "s": 57.627,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29026,
    "c": 0.11435,
    "h": 294.3
  },
  "luminance": 0.02139
}

Semantic roles & 50–950 ramp

primary
#31195D
secondary
#75933F
accent
#E147AB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #31195D

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

Preview Lab → · Contrast checker → · Palette generator →

#31195D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva