#311874#311874

#311874 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.145 H 287.0°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#311874
RGBrgb(49, 24, 116)
HSLhsl(256, 66%, 27%)
HSVhsv(256, 79%, 45%)
CMYKcmyk(57.8%, 79.3%, 0%, 54.5%)
CIE-LABlab(18.22, 36.61, -48.20)
CIE-LCHlch(18.22, 60.53, 307.22°)
OKLaboklab(31.14% 0.0425 -0.1387)
OKLCHoklch(31.14% 0.145 287)
XYZxyz(4.7447, 2.5669, 16.7651)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311874 #5B7418
analogous
#182D74 #311874 #5F1874
triadic
#311874 #743118 #187431
tetradic
#311874 #74182D #5B7418 #18745F
square
#311874 #74182D #5B7418 #18745F
split-complementary
#311874 #745F18 #2D7418
monochromatic
#0B0519 #1C0E41 #311874 #4622A7 #5E32D5

Accessibility & contrast

On white

13.88
#311874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#311874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311874
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311874#FFFFFF#000000##FFFFFF
##3118741.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002A72
Tritanopia (blue-blind)
#133245
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #311874;
/* rgb */ color: rgb(49, 24, 116);
/* oklch */ color: oklch(31.1% 0.145 287.0);
Tailwind
colors: {
  custom: {
    50: '#72589d',
    500: '#311874',
    950: '#000000',
  },
}
SCSS
$custom: #311874;
$custom-light: #72589d;
$custom-dark: #000000;
JSON
{
  "hex": "#311874",
  "rgb": {
    "r": 49,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 256.304,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31139,
    "c": 0.14508,
    "h": 287
  },
  "luminance": 0.02567
}

Semantic roles & 50–950 ramp

primary
#311874
secondary
#8CA93F
accent
#E93FBB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311874

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

Preview Lab → · Contrast checker → · Palette generator →

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