#311758#311758

#311758 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.111 H 297.1°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#311758
RGBrgb(49, 23, 88)
HSLhsl(264, 59%, 22%)
HSVhsv(264, 74%, 35%)
CMYKcmyk(44.3%, 73.9%, 0%, 65.5%)
CIE-LABlab(15.33, 28.63, -34.49)
CIE-LCHlch(15.33, 44.82, 309.70°)
OKLaboklab(28.27% 0.0503 -0.0985)
OKLCHoklch(28.27% 0.111 297.1)
XYZxyz(3.3340, 1.9703, 9.4353)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311758 #3E5817
analogous
#171E58 #311758 #521758
triadic
#311758 #583117 #175831
tetradic
#311758 #58171E #3E5817 #175852
square
#311758 #58171E #3E5817 #175852
split-complementary
#311758 #585217 #1E5817
monochromatic
#0E0618 #160A27 #311758 #4C2489 #6730B9

Accessibility & contrast

On white

15.06
#311758 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#311758 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311758
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311758#FFFFFF#000000##FFFFFF
##3117581.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275A
Deuteranopia (green-blind)
#002657
Tritanopia (blue-blind)
#272735
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #311758;
/* rgb */ color: rgb(49, 23, 88);
/* oklch */ color: oklch(28.3% 0.111 297.1);
Tailwind
colors: {
  custom: {
    50: '#6d5688',
    500: '#311758',
    950: '#000000',
  },
}
SCSS
$custom: #311758;
$custom-light: #6d5688;
$custom-dark: #000000;
JSON
{
  "hex": "#311758",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 88
  },
  "hsl": {
    "h": 264,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28267,
    "c": 0.1106,
    "h": 297.1
  },
  "luminance": 0.0197
}

Semantic roles & 50–950 ramp

primary
#311758
secondary
#6E8F3C
accent
#E246A3
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311758

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

Preview Lab → · Contrast checker → · Palette generator →

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