#31205C#31205C

#31205C is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.1% C 0.102 H 292.2°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#31205C
RGBrgb(49, 32, 92)
HSLhsl(257, 48%, 24%)
HSVhsv(257, 65%, 36%)
CMYKcmyk(46.7%, 65.2%, 0%, 63.9%)
CIE-LABlab(17.73, 24.29, -33.27)
CIE-LCHlch(17.73, 41.19, 306.13°)
OKLaboklab(30.11% 0.0387 -0.0949)
OKLCHoklch(30.11% 0.103 292.2)
XYZxyz(3.7144, 2.4586, 10.4020)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31205C #4B5C20
analogous
#202D5C #31205C #4F205C
triadic
#31205C #5C3120 #205C31
tetradic
#31205C #5C202D #4B5C20 #205C4F
square
#31205C #5C202D #4B5C20 #205C4F
split-complementary
#31205C #5C4F20 #2D5C20
monochromatic
#0C0817 #19102F #31205C #493089 #6140B7

Accessibility & contrast

On white

14.08
#31205C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#31205C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31205C
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31205C#FFFFFF#000000##FFFFFF
##31205C1.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5E
Deuteranopia (green-blind)
#002A5B
Tritanopia (blue-blind)
#252E3A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #31205c;
/* rgb */ color: rgb(49, 32, 92);
/* oklch */ color: oklch(30.1% 0.102 292.2);
Tailwind
colors: {
  custom: {
    50: '#6d5c8b',
    500: '#31205c',
    950: '#000000',
  },
}
SCSS
$custom: #31205c;
$custom-light: #6d5c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#31205c",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 92
  },
  "hsl": {
    "h": 257,
    "s": 48.387,
    "l": 24.314
  },
  "oklch": {
    "l": 0.30108,
    "c": 0.1025,
    "h": 292.2
  },
  "luminance": 0.02459
}

Semantic roles & 50–950 ramp

primary
#31205C
secondary
#7C9047
accent
#D850B1
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #31205C

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

Preview Lab → · Contrast checker → · Palette generator →

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