#31185A#31185A

#31185A is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.6% C 0.112 H 295.9°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#31185A
RGBrgb(49, 24, 90)
HSLhsl(263, 58%, 22%)
HSVhsv(263, 73%, 35%)
CMYKcmyk(45.6%, 73.3%, 0%, 64.7%)
CIE-LABlab(15.72, 28.65, -35.20)
CIE-LCHlch(15.72, 45.38, 309.14°)
OKLaboklab(28.6% 0.0488 -0.1006)
OKLCHoklch(28.6% 0.112 295.9)
XYZxyz(3.4382, 2.0443, 9.8843)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31185A #415A18
analogous
#18205A #31185A #52185A
triadic
#31185A #5A3118 #185A31
tetradic
#31185A #5A1820 #415A18 #185A52
square
#31185A #5A1820 #415A18 #185A52
split-complementary
#31185A #5A5218 #205A18
monochromatic
#0D0618 #170B2A #31185A #4B258A #6632BB

Accessibility & contrast

On white

14.91
#31185A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#31185A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31185A
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31185A#FFFFFF#000000##FFFFFF
##31185A1.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285C
Deuteranopia (green-blind)
#002659
Tritanopia (blue-blind)
#262836
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #31185a;
/* rgb */ color: rgb(49, 24, 90);
/* oklch */ color: oklch(28.6% 0.112 295.9);
Tailwind
colors: {
  custom: {
    50: '#6d5789',
    500: '#31185a',
    950: '#000000',
  },
}
SCSS
$custom: #31185a;
$custom-light: #6d5789;
$custom-dark: #000000;
JSON
{
  "hex": "#31185a",
  "rgb": {
    "r": 49,
    "g": 24,
    "b": 90
  },
  "hsl": {
    "h": 262.727,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.286,
    "c": 0.1118,
    "h": 295.9
  },
  "luminance": 0.02044
}

Semantic roles & 50–950 ramp

primary
#31185A
secondary
#71913D
accent
#E147A7
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #31185A

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

Preview Lab → · Contrast checker → · Palette generator →

#31185A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva