#312180#312180

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

Color values

HEX#312180
RGBrgb(49, 33, 128)
HSLhsl(250, 59%, 32%)
HSVhsv(250, 74%, 50%)
CMYKcmyk(61.7%, 74.2%, 0%, 49.8%)
CIE-LABlab(21.20, 35.42, -50.96)
CIE-LCHlch(21.20, 62.06, 304.80°)
OKLaboklab(33.61% 0.0322 -0.1468)
OKLCHoklch(33.61% 0.15 282.4)
XYZxyz(5.7055, 3.2988, 20.7540)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312180 #708021
analogous
#214180 #312180 #612180
triadic
#312180 #803121 #218031
tetradic
#312180 #802141 #708021 #218061
square
#312180 #802141 #708021 #218061
split-complementary
#312180 #806121 #418021
monochromatic
#0C081F #1E144F #312180 #442EB1 #614BD1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##312180#FFFFFF#000000##FFFFFF
##3121801.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)
#003683
Deuteranopia (green-blind)
#00307E
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #312180;
/* rgb */ color: rgb(49, 33, 128);
/* oklch */ color: oklch(33.6% 0.150 282.4);
Tailwind
colors: {
  custom: {
    50: '#735ea6',
    500: '#312180',
    950: '#000000',
  },
}
SCSS
$custom: #312180;
$custom-light: #735ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#312180",
  "rgb": {
    "r": 49,
    "g": 33,
    "b": 128
  },
  "hsl": {
    "h": 250.105,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33614,
    "c": 0.15034,
    "h": 282.4
  },
  "luminance": 0.03299
}

Semantic roles & 50–950 ramp

primary
#312180
secondary
#A1B34A
accent
#E246C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #312180

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

Preview Lab → · Contrast checker → · Palette generator →

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