#311674#311674

#311674 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.147 H 287.4°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#311674
RGBrgb(49, 22, 116)
HSLhsl(257, 68%, 27%)
HSVhsv(257, 81%, 45%)
CMYKcmyk(57.8%, 81%, 0%, 54.5%)
CIE-LABlab(17.86, 37.63, -48.78)
CIE-LCHlch(17.86, 61.61, 307.65°)
OKLaboklab(30.89% 0.0441 -0.1404)
OKLCHoklch(30.89% 0.147 287.4)
XYZxyz(4.7050, 2.4875, 16.7518)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311674 #597416
analogous
#162A74 #311674 #601674
triadic
#311674 #743116 #167431
tetradic
#311674 #74162A #597416 #167460
square
#311674 #74162A #597416 #167460
split-complementary
#311674 #746016 #2A7416
monochromatic
#0B051A #1B0C41 #311674 #4720A7 #5E2DD7

Accessibility & contrast

On white

14.02
#311674 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#311674 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311674
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311674#FFFFFF#000000##FFFFFF
##3116741.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#133145
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #311674;
/* rgb */ color: rgb(49, 22, 116);
/* oklch */ color: oklch(30.9% 0.147 287.4);
Tailwind
colors: {
  custom: {
    50: '#72579d',
    500: '#311674',
    950: '#000000',
  },
}
SCSS
$custom: #311674;
$custom-light: #72579d;
$custom-dark: #000000;
JSON
{
  "hex": "#311674",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 116
  },
  "hsl": {
    "h": 257.234,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3089,
    "c": 0.14716,
    "h": 287.4
  },
  "luminance": 0.02488
}

Semantic roles & 50–950 ramp

primary
#311674
secondary
#8AAA3C
accent
#EB3DB9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311674

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

Preview Lab → · Contrast checker → · Palette generator →

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