#311174#311174

#311174 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.152 H 288.2°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#311174
RGBrgb(49, 17, 116)
HSLhsl(259, 74%, 26%)
HSVhsv(259, 85%, 45%)
CMYKcmyk(57.8%, 85.3%, 0%, 54.5%)
CIE-LABlab(17.06, 39.96, -50.11)
CIE-LCHlch(17.06, 64.09, 308.57°)
OKLaboklab(30.33% 0.0475 -0.1442)
OKLCHoklch(30.33% 0.152 288.2)
XYZxyz(4.6185, 2.3146, 16.7230)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311174 #547411
analogous
#112274 #311174 #621174
triadic
#311174 #743111 #117431
tetradic
#311174 #741122 #547411 #117462
square
#311174 #741122 #547411 #117462
split-complementary
#311174 #746211 #227411
monochromatic
#0B041B #1A093F #311174 #4819A9 #5E21DE

Accessibility & contrast

On white

14.35
#311174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#311174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311174
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311174#FFFFFF#000000##FFFFFF
##3111741.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002772
Tritanopia (blue-blind)
#142F44
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #311174;
/* rgb */ color: rgb(49, 17, 116);
/* oklch */ color: oklch(30.3% 0.152 288.2);
Tailwind
colors: {
  custom: {
    50: '#72559d',
    500: '#311174',
    950: '#000000',
  },
}
SCSS
$custom: #311174;
$custom-light: #72559d;
$custom-dark: #000000;
JSON
{
  "hex": "#311174",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 259.394,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30332,
    "c": 0.15185,
    "h": 288.2
  },
  "luminance": 0.02315
}

Semantic roles & 50–950 ramp

primary
#311174
secondary
#85AB36
accent
#F137B5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311174

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

Preview Lab → · Contrast checker → · Palette generator →

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