#31155D#31155D

#31155D is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.120 H 295.5°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#31155D
RGBrgb(49, 21, 93)
HSLhsl(263, 63%, 22%)
HSVhsv(263, 77%, 36%)
CMYKcmyk(47.3%, 77.4%, 0%, 63.5%)
CIE-LABlab(15.38, 31.25, -37.76)
CIE-LCHlch(15.38, 49.01, 309.61°)
OKLaboklab(28.44% 0.0515 -0.1081)
OKLCHoklch(28.44% 0.12 295.5)
XYZxyz(3.5100, 1.9795, 10.5510)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31155D #415D15
analogous
#151D5D #31155D #55155D
triadic
#31155D #5D3115 #155D31
tetradic
#31155D #5D151D #415D15 #155D55
square
#31155D #5D151D #415D15 #155D55
split-complementary
#31155D #5D5515 #1D5D15
monochromatic
#0D0619 #170A2B #31155D #4B208F #662CC1

Accessibility & contrast

On white

15.04
#31155D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#31155D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31155D
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31155D#FFFFFF#000000##FFFFFF
##31155D1.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275F
Deuteranopia (green-blind)
#00255C
Tritanopia (blue-blind)
#252737
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #31155d;
/* rgb */ color: rgb(49, 21, 93);
/* oklch */ color: oklch(28.4% 0.120 295.5);
Tailwind
colors: {
  custom: {
    50: '#6e558c',
    500: '#31155d',
    950: '#000000',
  },
}
SCSS
$custom: #31155d;
$custom-light: #6e558c;
$custom-dark: #000000;
JSON
{
  "hex": "#31155d",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 93
  },
  "hsl": {
    "h": 263.333,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28444,
    "c": 0.11974,
    "h": 295.5
  },
  "luminance": 0.0198
}

Semantic roles & 50–950 ramp

primary
#31155D
secondary
#719439
accent
#E642A6
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #31155D

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

Preview Lab → · Contrast checker → · Palette generator →

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