#311673#311673

#311673 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.146 H 287.7°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#311673
RGBrgb(49, 22, 115)
HSLhsl(257, 68%, 27%)
HSVhsv(257, 81%, 45%)
CMYKcmyk(57.4%, 80.9%, 0%, 54.9%)
CIE-LABlab(17.76, 37.33, -48.31)
CIE-LCHlch(17.76, 61.05, 307.69°)
OKLaboklab(30.78% 0.0444 -0.139)
OKLCHoklch(30.78% 0.146 287.7)
XYZxyz(4.6471, 2.4643, 16.4471)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311673 #587316
analogous
#162A73 #311673 #601673
triadic
#311673 #733116 #167331
tetradic
#311673 #73162A #587316 #167360
square
#311673 #73162A #587316 #167360
split-complementary
#311673 #736016 #2A7316
monochromatic
#0B051A #1B0C40 #311673 #4720A6 #5E2DD7

Accessibility & contrast

On white

14.07
#311673 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#311673 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311673
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311673#FFFFFF#000000##FFFFFF
##3116731.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002971
Tritanopia (blue-blind)
#153144
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #311673;
/* rgb */ color: rgb(49, 22, 115);
/* oklch */ color: oklch(30.8% 0.146 287.7);
Tailwind
colors: {
  custom: {
    50: '#72579c',
    500: '#311673',
    950: '#000000',
  },
}
SCSS
$custom: #311673;
$custom-light: #72579c;
$custom-dark: #000000;
JSON
{
  "hex": "#311673",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 115
  },
  "hsl": {
    "h": 257.419,
    "s": 67.883,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30784,
    "c": 0.14594,
    "h": 287.7
  },
  "luminance": 0.02465
}

Semantic roles & 50–950 ramp

primary
#311673
secondary
#89A93C
accent
#EB3DB8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311673

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

Preview Lab → · Contrast checker → · Palette generator →

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