#31185D#31185D

#31185D is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.9% C 0.116 H 294.6°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#31185D
RGBrgb(49, 24, 93)
HSLhsl(262, 59%, 23%)
HSVhsv(262, 74%, 36%)
CMYKcmyk(47.3%, 74.2%, 0%, 63.5%)
CIE-LABlab(15.99, 29.55, -36.77)
CIE-LCHlch(15.99, 47.18, 308.79°)
OKLaboklab(28.87% 0.0483 -0.1052)
OKLCHoklch(28.87% 0.116 294.6)
XYZxyz(3.5685, 2.0965, 10.5704)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31185D #445D18
analogous
#18225D #31185D #53185D
triadic
#31185D #5D3118 #185D31
tetradic
#31185D #5D1822 #445D18 #185D53
square
#31185D #5D1822 #445D18 #185D53
split-complementary
#31185D #5D5318 #225D18
monochromatic
#0D0618 #170B2C #31185D #4B258E #6431BE

Accessibility & contrast

On white

14.79
#31185D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#31185D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31185D
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31185D#FFFFFF#000000##FFFFFF
##31185D1.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285F
Deuteranopia (green-blind)
#00275C
Tritanopia (blue-blind)
#252938
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #31185d;
/* rgb */ color: rgb(49, 24, 93);
/* oklch */ color: oklch(28.9% 0.116 294.6);
Tailwind
colors: {
  custom: {
    50: '#6e578c',
    500: '#31185d',
    950: '#000000',
  },
}
SCSS
$custom: #31185d;
$custom-light: #6e578c;
$custom-dark: #000000;
JSON
{
  "hex": "#31185d",
  "rgb": {
    "r": 49,
    "g": 24,
    "b": 93
  },
  "hsl": {
    "h": 261.739,
    "s": 58.974,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28874,
    "c": 0.11575,
    "h": 294.6
  },
  "luminance": 0.02097
}

Semantic roles & 50–950 ramp

primary
#31185D
secondary
#74933D
accent
#E246A9
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #31185D

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

Preview Lab → · Contrast checker → · Palette generator →

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