#311A68#311A68

#311A68 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.127 H 290.1°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#311A68
RGBrgb(49, 26, 104)
HSLhsl(258, 60%, 25%)
HSVhsv(258, 75%, 41%)
CMYKcmyk(52.9%, 75%, 0%, 59.2%)
CIE-LABlab(17.42, 31.79, -41.71)
CIE-LCHlch(17.42, 52.44, 307.32°)
OKLaboklab(30.21% 0.0439 -0.1197)
OKLCHoklch(30.21% 0.127 290.1)
XYZxyz(4.1340, 2.3911, 13.3377)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A68 #51681A
analogous
#1A2A68 #311A68 #581A68
triadic
#311A68 #68311A #1A6831
tetradic
#311A68 #681A2A #51681A #1A6858
square
#311A68 #681A2A #51681A #1A6858
split-complementary
#311A68 #68581A #2A681A
monochromatic
#0C0618 #1A0E37 #311A68 #482699 #5F32CA

Accessibility & contrast

On white

14.21
#311A68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#311A68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A68
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A68#FFFFFF#000000##FFFFFF
##311A681.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311a68;
/* rgb */ color: rgb(49, 26, 104);
/* oklch */ color: oklch(30.2% 0.127 290.1);
Tailwind
colors: {
  custom: {
    50: '#6f5994',
    500: '#311a68',
    950: '#000000',
  },
}
SCSS
$custom: #311a68;
$custom-light: #6f5994;
$custom-dark: #000000;
JSON
{
  "hex": "#311a68",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 104
  },
  "hsl": {
    "h": 257.692,
    "s": 60,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30211,
    "c": 0.12749,
    "h": 290.1
  },
  "luminance": 0.02391
}

Semantic roles & 50–950 ramp

primary
#311A68
secondary
#829D40
accent
#E345B4
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311A68

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

Preview Lab → · Contrast checker → · Palette generator →

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