#311074#311074

#311074 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.153 H 288.4°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#311074
RGBrgb(49, 16, 116)
HSLhsl(260, 76%, 26%)
HSVhsv(260, 86%, 45%)
CMYKcmyk(57.8%, 86.2%, 0%, 54.5%)
CIE-LABlab(16.91, 40.39, -50.35)
CIE-LCHlch(16.91, 64.55, 308.74°)
OKLaboklab(30.23% 0.0482 -0.1449)
OKLCHoklch(30.23% 0.153 288.4)
XYZxyz(4.6034, 2.2843, 16.7180)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311074 #537410
analogous
#102174 #311074 #631074
triadic
#311074 #743110 #107431
tetradic
#311074 #741021 #537410 #107463
square
#311074 #741021 #537410 #107463
split-complementary
#311074 #746310 #217410
monochromatic
#0B041B #1A093E #311074 #4817AA #5E1FE0

Accessibility & contrast

On white

14.41
#311074 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311074
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311074#FFFFFF#000000##FFFFFF
##3110741.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311074;
/* rgb */ color: rgb(49, 16, 116);
/* oklch */ color: oklch(30.2% 0.153 288.4);
Tailwind
colors: {
  custom: {
    50: '#72549d',
    500: '#311074',
    950: '#000000',
  },
}
SCSS
$custom: #311074;
$custom-light: #72549d;
$custom-dark: #000000;
JSON
{
  "hex": "#311074",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 116
  },
  "hsl": {
    "h": 259.8,
    "s": 75.758,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30233,
    "c": 0.15269,
    "h": 288.4
  },
  "luminance": 0.02285
}

Semantic roles & 50–950 ramp

primary
#311074
secondary
#84AB35
accent
#F235B4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311074

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

Preview Lab → · Contrast checker → · Palette generator →

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