#31155C#31155C

#31155C is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.118 H 295.9°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#31155C
RGBrgb(49, 21, 92)
HSLhsl(264, 63%, 22%)
HSVhsv(264, 77%, 36%)
CMYKcmyk(46.7%, 77.2%, 0%, 63.9%)
CIE-LABlab(15.29, 30.95, -37.24)
CIE-LCHlch(15.29, 48.43, 309.73°)
OKLaboklab(28.35% 0.0518 -0.1066)
OKLCHoklch(28.35% 0.118 295.9)
XYZxyz(3.4660, 1.9619, 10.3192)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31155C #405C15
analogous
#151D5C #31155C #55155C
triadic
#31155C #5C3115 #155C31
tetradic
#31155C #5C151D #405C15 #155C55
square
#31155C #5C151D #405C15 #155C55
split-complementary
#31155C #5C5515 #1D5C15
monochromatic
#0D0619 #160A2A #31155C #4C208E #662CC0

Accessibility & contrast

On white

15.08
#31155C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#31155C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31155C
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31155C#FFFFFF#000000##FFFFFF
##31155C1.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31155c;
/* rgb */ color: rgb(49, 21, 92);
/* oklch */ color: oklch(28.3% 0.118 295.9);
Tailwind
colors: {
  custom: {
    50: '#6e558b',
    500: '#31155c',
    950: '#000000',
  },
}
SCSS
$custom: #31155c;
$custom-light: #6e558b;
$custom-dark: #000000;
JSON
{
  "hex": "#31155c",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 92
  },
  "hsl": {
    "h": 263.662,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28349,
    "c": 0.11847,
    "h": 295.9
  },
  "luminance": 0.01962
}

Semantic roles & 50–950 ramp

primary
#31155C
secondary
#709339
accent
#E642A5
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #31155C

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

Preview Lab → · Contrast checker → · Palette generator →

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