#312082#312082

#312082 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.154 H 282.2°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#312082
RGBrgb(49, 32, 130)
HSLhsl(250, 60%, 32%)
HSVhsv(250, 75%, 51%)
CMYKcmyk(62.3%, 75.4%, 0%, 49%)
CIE-LABlab(21.20, 36.64, -52.23)
CIE-LCHlch(21.20, 63.80, 305.05°)
OKLaboklab(33.67% 0.0326 -0.1506)
OKLCHoklch(33.67% 0.154 282.2)
XYZxyz(5.8111, 3.2973, 21.4450)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312082 #718220
analogous
#204082 #312082 #622082
triadic
#312082 #823120 #208231
tetradic
#312082 #822040 #718220 #208262
square
#312082 #822040 #718220 #208262
split-complementary
#312082 #826220 #408220
monochromatic
#0C0820 #1E1451 #312082 #442CB3 #624AD2

Accessibility & contrast

On white

12.65
#312082 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#312082 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312082
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312082#FFFFFF#000000##FFFFFF
##3120821.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#002F80
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #312082;
/* rgb */ color: rgb(49, 32, 130);
/* oklch */ color: oklch(33.7% 0.154 282.2);
Tailwind
colors: {
  custom: {
    50: '#745ea7',
    500: '#312082',
    950: '#000000',
  },
}
SCSS
$custom: #312082;
$custom-light: #745ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#312082",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 130
  },
  "hsl": {
    "h": 250.408,
    "s": 60.494,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33671,
    "c": 0.15405,
    "h": 282.2
  },
  "luminance": 0.03298
}

Semantic roles & 50–950 ramp

primary
#312082
secondary
#A2B549
accent
#E444C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #312082

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

Preview Lab → · Contrast checker → · Palette generator →

#312082 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva