#31246D#31246D

#31246D is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.3% C 0.121 H 285.6°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#31246D
RGBrgb(49, 36, 109)
HSLhsl(251, 50%, 28%)
HSVhsv(251, 67%, 43%)
CMYKcmyk(55%, 67%, 0%, 57.3%)
CIE-LABlab(20.12, 27.28, -40.56)
CIE-LCHlch(20.12, 48.88, 303.92°)
OKLaboklab(32.29% 0.0325 -0.1164)
OKLCHoklch(32.29% 0.121 285.6)
XYZxyz(4.6570, 3.0186, 14.8023)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31246D #606D24
analogous
#243B6D #31246D #55246D
triadic
#31246D #6D3124 #246D31
tetradic
#31246D #6D243B #606D24 #246D55
square
#31246D #6D243B #606D24 #246D55
split-complementary
#31246D #6D5524 #3B6D24
monochromatic
#0A0817 #1C153F #31246D #46339B #5E49C3

Accessibility & contrast

On white

13.09
#31246D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#31246D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31246D
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31246D#FFFFFF#000000##FFFFFF
##31246D1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336F
Deuteranopia (green-blind)
#002E6C
Tritanopia (blue-blind)
#193645
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #31246d;
/* rgb */ color: rgb(49, 36, 109);
/* oklch */ color: oklch(32.3% 0.121 285.6);
Tailwind
colors: {
  custom: {
    50: '#6f5f97',
    500: '#31246d',
    950: '#000000',
  },
}
SCSS
$custom: #31246d;
$custom-light: #6f5f97;
$custom-dark: #000000;
JSON
{
  "hex": "#31246d",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 109
  },
  "hsl": {
    "h": 250.685,
    "s": 50.345,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32292,
    "c": 0.12082,
    "h": 285.6
  },
  "luminance": 0.03019
}

Semantic roles & 50–950 ramp

primary
#31246D
secondary
#91A04D
accent
#DA4EC1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #31246D

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

Preview Lab → · Contrast checker → · Palette generator →

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