#311B68#311B68

#311B68 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.126 H 289.8°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#311B68
RGBrgb(49, 27, 104)
HSLhsl(257, 59%, 26%)
HSVhsv(257, 74%, 41%)
CMYKcmyk(52.9%, 74%, 0%, 59.2%)
CIE-LABlab(17.63, 31.21, -41.37)
CIE-LCHlch(17.63, 51.82, 307.03°)
OKLaboklab(30.36% 0.0429 -0.1187)
OKLCHoklch(30.36% 0.126 289.8)
XYZxyz(4.1565, 2.4361, 13.3452)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311B68 #52681B
analogous
#1B2B68 #311B68 #571B68
triadic
#311B68 #68311B #1B6831
tetradic
#311B68 #681B2B #52681B #1B6857
square
#311B68 #681B2B #52681B #1B6857
split-complementary
#311B68 #68571B #2B681B
monochromatic
#0B0618 #1A0E37 #311B68 #482899 #5F34C9

Accessibility & contrast

On white

14.12
#311B68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#311B68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311B68
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311B68#FFFFFF#000000##FFFFFF
##311B681.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6A
Deuteranopia (green-blind)
#002966
Tritanopia (blue-blind)
#1E2F3F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #311b68;
/* rgb */ color: rgb(49, 27, 104);
/* oklch */ color: oklch(30.4% 0.126 289.8);
Tailwind
colors: {
  custom: {
    50: '#6f5994',
    500: '#311b68',
    950: '#000000',
  },
}
SCSS
$custom: #311b68;
$custom-light: #6f5994;
$custom-dark: #000000;
JSON
{
  "hex": "#311b68",
  "rgb": {
    "r": 49,
    "g": 27,
    "b": 104
  },
  "hsl": {
    "h": 257.143,
    "s": 58.779,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30359,
    "c": 0.12622,
    "h": 289.8
  },
  "luminance": 0.02436
}

Semantic roles & 50–950 ramp

primary
#311B68
secondary
#839D42
accent
#E246B5
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #311B68

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

Preview Lab → · Contrast checker → · Palette generator →

#311B68 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva