#311283#311283

#311283 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.1% C 0.168 H 284.2°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#311283
RGBrgb(49, 18, 131)
HSLhsl(256, 76%, 29%)
HSVhsv(256, 86%, 51%)
CMYKcmyk(62.6%, 86.3%, 0%, 48.6%)
CIE-LABlab(18.90, 43.87, -56.65)
CIE-LCHlch(18.90, 71.65, 307.75°)
OKLaboklab(32.1% 0.0412 -0.1633)
OKLCHoklch(32.1% 0.168 284.2)
XYZxyz(5.5784, 2.7239, 21.7001)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311283 #648312
analogous
#122C83 #311283 #6A1283
triadic
#311283 #833112 #128331
tetradic
#311283 #83122C #648312 #12836A
square
#311283 #83122C #648312 #12836A
split-complementary
#311283 #836A12 #2C8312
monochromatic
#0A041B #1D0B4D #311283 #4519B9 #5F2DE2

Accessibility & contrast

On white

13.59
#311283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#311283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311283
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311283#FFFFFF#000000##FFFFFF
##3112831.0013.591.5413.59
#FFFFFF13.591.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003186
Deuteranopia (green-blind)
#002A81
Tritanopia (blue-blind)
#00364D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #311283;
/* rgb */ color: rgb(49, 18, 131);
/* oklch */ color: oklch(32.1% 0.168 284.2);
Tailwind
colors: {
  custom: {
    50: '#7556a8',
    500: '#311283',
    950: '#000000',
  },
}
SCSS
$custom: #311283;
$custom-light: #7556a8;
$custom-dark: #000000;
JSON
{
  "hex": "#311283",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 131
  },
  "hsl": {
    "h": 256.46,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32104,
    "c": 0.16842,
    "h": 284.2
  },
  "luminance": 0.02724
}

Semantic roles & 50–950 ramp

primary
#311283
secondary
#95B838
accent
#F235BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #311283

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

Preview Lab → · Contrast checker → · Palette generator →

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