#311889#311889

#311889 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.171 H 282.1°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#311889
RGBrgb(49, 24, 137)
HSLhsl(253, 70%, 32%)
HSVhsv(253, 82%, 54%)
CMYKcmyk(64.2%, 82.5%, 0%, 46.3%)
CIE-LABlab(20.49, 42.99, -57.81)
CIE-LCHlch(20.49, 72.04, 306.64°)
OKLaboklab(33.4% 0.0359 -0.1668)
OKLCHoklch(33.4% 0.171 282.1)
XYZxyz(6.1072, 3.1119, 23.9409)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311889 #708918
analogous
#183889 #311889 #6A1889
triadic
#311889 #893118 #188931
tetradic
#311889 #891838 #708918 #18896A
square
#311889 #891838 #708918 #18896A
split-complementary
#311889 #896A18 #388918
monochromatic
#0C0621 #1E0F55 #311889 #4421BD #613EDD

Accessibility & contrast

On white

12.94
#311889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#311889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311889
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311889#FFFFFF#000000##FFFFFF
##3118891.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002D87
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #311889;
/* rgb */ color: rgb(49, 24, 137);
/* oklch */ color: oklch(33.4% 0.171 282.1);
Tailwind
colors: {
  custom: {
    50: '#7659ad',
    500: '#311889',
    950: '#000000',
  },
}
SCSS
$custom: #311889;
$custom-light: #7659ad;
$custom-dark: #000000;
JSON
{
  "hex": "#311889",
  "rgb": {
    "r": 49,
    "g": 24,
    "b": 137
  },
  "hsl": {
    "h": 253.274,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33397,
    "c": 0.17057,
    "h": 282.1
  },
  "luminance": 0.03112
}

Semantic roles & 50–950 ramp

primary
#311889
secondary
#A1BD40
accent
#ED3BC6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #311889

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

Preview Lab → · Contrast checker → · Palette generator →

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