#311890#311890

#311890 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.179 H 280.8°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#311890
RGBrgb(49, 24, 144)
HSLhsl(253, 71%, 33%)
HSVhsv(253, 83%, 56%)
CMYKcmyk(66%, 83.3%, 0%, 43.5%)
CIE-LABlab(21.28, 45.09, -60.86)
CIE-LCHlch(21.28, 75.75, 306.53°)
OKLaboklab(34.18% 0.0335 -0.1757)
OKLCHoklch(34.18% 0.179 280.8)
XYZxyz(6.6257, 3.3193, 26.6717)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311890 #779018
analogous
#183B90 #311890 #6D1890
triadic
#311890 #903118 #189031
tetradic
#311890 #90183B #779018 #18906D
square
#311890 #90183B #779018 #18906D
split-complementary
#311890 #906D18 #3B9018
monochromatic
#0D0727 #1F0F5C #311890 #4321C4 #6343E0

Accessibility & contrast

On white

12.62
#311890 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311890
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311890#FFFFFF#000000##FFFFFF
##3118901.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003793
Deuteranopia (green-blind)
#002F8E
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #311890;
/* rgb */ color: rgb(49, 24, 144);
/* oklch */ color: oklch(34.2% 0.179 280.8);
Tailwind
colors: {
  custom: {
    50: '#775ab2',
    500: '#311890',
    950: '#000000',
  },
}
SCSS
$custom: #311890;
$custom-light: #775ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#311890",
  "rgb": {
    "r": 49,
    "g": 24,
    "b": 144
  },
  "hsl": {
    "h": 252.5,
    "s": 71.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34179,
    "c": 0.17883,
    "h": 280.8
  },
  "luminance": 0.0332
}

Semantic roles & 50–950 ramp

primary
#311890
secondary
#A6C043
accent
#EE3AC9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311890

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

Preview Lab → · Contrast checker → · Palette generator →

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