#311683#311683

#311683 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.165 H 283.7°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#311683
RGBrgb(49, 22, 131)
HSLhsl(255, 71%, 30%)
HSVhsv(255, 83%, 51%)
CMYKcmyk(62.6%, 83.2%, 0%, 48.6%)
CIE-LABlab(19.50, 42.13, -55.67)
CIE-LCHlch(19.50, 69.81, 307.12°)
OKLaboklab(32.51% 0.039 -0.1605)
OKLCHoklch(32.51% 0.165 283.7)
XYZxyz(5.6490, 2.8651, 21.7237)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311683 #688316
analogous
#163283 #311683 #671683
triadic
#311683 #833116 #168331
tetradic
#311683 #831632 #688316 #168367
square
#311683 #831632 #688316 #168367
split-complementary
#311683 #836716 #328316
monochromatic
#0A041A #1D0D4F #311683 #451FB7 #6036DD

Accessibility & contrast

On white

13.35
#311683 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#311683 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311683
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311683#FFFFFF#000000##FFFFFF
##3116831.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003286
Deuteranopia (green-blind)
#002C81
Tritanopia (blue-blind)
#00374D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #311683;
/* rgb */ color: rgb(49, 22, 131);
/* oklch */ color: oklch(32.5% 0.165 283.7);
Tailwind
colors: {
  custom: {
    50: '#7558a8',
    500: '#311683',
    950: '#000000',
  },
}
SCSS
$custom: #311683;
$custom-light: #7558a8;
$custom-dark: #000000;
JSON
{
  "hex": "#311683",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 131
  },
  "hsl": {
    "h": 254.862,
    "s": 71.242,
    "l": 30
  },
  "oklch": {
    "l": 0.32512,
    "c": 0.16518,
    "h": 283.7
  },
  "luminance": 0.02865
}

Semantic roles & 50–950 ramp

primary
#311683
secondary
#99B73D
accent
#EE3AC1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #311683

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

Preview Lab → · Contrast checker → · Palette generator →

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