#311894#311894

#311894 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.6% C 0.184 H 280.1°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#311894
RGBrgb(49, 24, 148)
HSLhsl(252, 72%, 34%)
HSVhsv(252, 84%, 58%)
CMYKcmyk(66.9%, 83.8%, 0%, 42%)
CIE-LABlab(21.74, 46.28, -62.58)
CIE-LCHlch(21.74, 77.83, 306.48°)
OKLaboklab(34.63% 0.0322 -0.1807)
OKLCHoklch(34.63% 0.184 280.1)
XYZxyz(6.9369, 3.4438, 28.3104)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311894 #7B9418
analogous
#183D94 #311894 #6F1894
triadic
#311894 #943118 #189431
tetradic
#311894 #94183D #7B9418 #18946F
square
#311894 #94183D #7B9418 #18946F
split-complementary
#311894 #946F18 #3D9418
monochromatic
#0E072B #200F5F #311894 #4221C9 #6545E1

Accessibility & contrast

On white

12.43
#311894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#311894 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311894
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311894#FFFFFF#000000##FFFFFF
##3118941.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003897
Deuteranopia (green-blind)
#002F92
Tritanopia (blue-blind)
#003F58
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #311894;
/* rgb */ color: rgb(49, 24, 148);
/* oklch */ color: oklch(34.6% 0.184 280.1);
Tailwind
colors: {
  custom: {
    50: '#785ab5',
    500: '#311894',
    950: '#000000',
  },
}
SCSS
$custom: #311894;
$custom-light: #785ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#311894",
  "rgb": {
    "r": 49,
    "g": 24,
    "b": 148
  },
  "hsl": {
    "h": 252.097,
    "s": 72.093,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34631,
    "c": 0.18351,
    "h": 280.1
  },
  "luminance": 0.03444
}

Semantic roles & 50–950 ramp

primary
#311894
secondary
#A9C246
accent
#EF39CA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311894

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

Preview Lab → · Contrast checker → · Palette generator →

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