#31246E#31246E

#31246E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.4% C 0.122 H 285.4°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#31246E
RGBrgb(49, 36, 110)
HSLhsl(251, 51%, 29%)
HSVhsv(251, 67%, 43%)
CMYKcmyk(55.5%, 67.3%, 0%, 56.9%)
CIE-LABlab(20.20, 27.61, -41.07)
CIE-LCHlch(20.20, 49.49, 303.91°)
OKLaboklab(32.38% 0.0324 -0.1179)
OKLCHoklch(32.38% 0.122 285.4)
XYZxyz(4.7111, 3.0403, 15.0874)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31246E #616E24
analogous
#243C6E #31246E #56246E
triadic
#31246E #6E3124 #246E31
tetradic
#31246E #6E243C #616E24 #246E56
square
#31246E #6E243C #616E24 #246E56
split-complementary
#31246E #6E5624 #3C6E24
monochromatic
#0A0817 #1C1540 #31246E #46339C #5E49C3

Accessibility & contrast

On white

13.06
#31246E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#31246E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31246E
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31246E#FFFFFF#000000##FFFFFF
##31246E1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#002E6D
Tritanopia (blue-blind)
#183645
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #31246e;
/* rgb */ color: rgb(49, 36, 110);
/* oklch */ color: oklch(32.4% 0.122 285.4);
Tailwind
colors: {
  custom: {
    50: '#705f98',
    500: '#31246e',
    950: '#000000',
  },
}
SCSS
$custom: #31246e;
$custom-light: #705f98;
$custom-dark: #000000;
JSON
{
  "hex": "#31246e",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 110
  },
  "hsl": {
    "h": 250.541,
    "s": 50.685,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32382,
    "c": 0.12223,
    "h": 285.4
  },
  "luminance": 0.03041
}

Semantic roles & 50–950 ramp

primary
#31246E
secondary
#92A14D
accent
#DA4EC1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #31246E

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

Preview Lab → · Contrast checker → · Palette generator →

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