#311058#311058

#311058 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.3% C 0.120 H 298.9°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#311058
RGBrgb(49, 16, 88)
HSLhsl(268, 69%, 20%)
HSVhsv(268, 82%, 35%)
CMYKcmyk(44.3%, 81.8%, 0%, 65.5%)
CIE-LABlab(13.99, 32.40, -36.67)
CIE-LCHlch(13.99, 48.93, 311.46°)
OKLaboklab(27.32% 0.0579 -0.1048)
OKLCHoklch(27.32% 0.12 298.9)
XYZxyz(3.2129, 1.7281, 9.3949)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311058 #375810
analogous
#101358 #311058 #551058
triadic
#311058 #583110 #105831
tetradic
#311058 #581013 #375810 #105855
square
#311058 #581013 #375810 #105855
split-complementary
#311058 #585510 #135810
monochromatic
#0E051A #140724 #311058 #4E198C #6B23C0

Accessibility & contrast

On white

15.61
#311058 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#311058 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311058
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311058#FFFFFF#000000##FFFFFF
##3110581.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245A
Deuteranopia (green-blind)
#002357
Tritanopia (blue-blind)
#272333
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #311058;
/* rgb */ color: rgb(49, 16, 88);
/* oklch */ color: oklch(27.3% 0.120 298.9);
Tailwind
colors: {
  custom: {
    50: '#6e5288',
    500: '#311058',
    950: '#000000',
  },
}
SCSS
$custom: #311058;
$custom-light: #6e5288;
$custom-dark: #000000;
JSON
{
  "hex": "#311058",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 88
  },
  "hsl": {
    "h": 267.5,
    "s": 69.231,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27318,
    "c": 0.11979,
    "h": 298.9
  },
  "luminance": 0.01728
}

Semantic roles & 50–950 ramp

primary
#311058
secondary
#669132
accent
#EC3C9B
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #311058

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

Preview Lab → · Contrast checker → · Palette generator →

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