#31205D#31205D

#31205D is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.2% C 0.104 H 291.8°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#31205D
RGBrgb(49, 32, 93)
HSLhsl(257, 49%, 25%)
HSVhsv(257, 66%, 36%)
CMYKcmyk(47.3%, 65.6%, 0%, 63.5%)
CIE-LABlab(17.81, 24.61, -33.81)
CIE-LCHlch(17.81, 41.82, 306.05°)
OKLaboklab(30.19% 0.0386 -0.0965)
OKLCHoklch(30.19% 0.104 291.8)
XYZxyz(3.7584, 2.4762, 10.6337)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31205D #4C5D20
analogous
#202E5D #31205D #50205D
triadic
#31205D #5D3120 #205D31
tetradic
#31205D #5D202E #4C5D20 #205D50
square
#31205D #5D202E #4C5D20 #205D50
split-complementary
#31205D #5D5020 #2E5D20
monochromatic
#0C0817 #19102F #31205D #49308B #613FB8

Accessibility & contrast

On white

14.04
#31205D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#31205D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31205D
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31205D#FFFFFF#000000##FFFFFF
##31205D1.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5F
Deuteranopia (green-blind)
#002A5C
Tritanopia (blue-blind)
#242E3B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #31205d;
/* rgb */ color: rgb(49, 32, 93);
/* oklch */ color: oklch(30.2% 0.104 291.8);
Tailwind
colors: {
  custom: {
    50: '#6d5c8b',
    500: '#31205d',
    950: '#000000',
  },
}
SCSS
$custom: #31205d;
$custom-light: #6d5c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#31205d",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 93
  },
  "hsl": {
    "h": 256.721,
    "s": 48.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.30192,
    "c": 0.10394,
    "h": 291.8
  },
  "luminance": 0.02476
}

Semantic roles & 50–950 ramp

primary
#31205D
secondary
#7D9147
accent
#D84FB2
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #31205D

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

Preview Lab → · Contrast checker → · Palette generator →

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