#311A64#311A64

#311A64 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.122 H 291.4°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#311A64
RGBrgb(49, 26, 100)
HSLhsl(259, 59%, 25%)
HSVhsv(259, 74%, 39%)
CMYKcmyk(51%, 74%, 0%, 60.8%)
CIE-LABlab(17.04, 30.55, -39.69)
CIE-LCHlch(17.04, 50.08, 307.58°)
OKLaboklab(29.83% 0.0447 -0.1138)
OKLCHoklch(29.83% 0.122 291.4)
XYZxyz(3.9356, 2.3117, 12.2930)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A64 #4D641A
analogous
#1A2864 #311A64 #561A64
triadic
#311A64 #64311A #1A6431
tetradic
#311A64 #641A28 #4D641A #1A6456
square
#311A64 #641A28 #4D641A #1A6456
split-complementary
#311A64 #64561A #28641A
monochromatic
#0C0618 #190D33 #311A64 #492795 #6133C5

Accessibility & contrast

On white

14.36
#311A64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#311A64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A64
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A64#FFFFFF#000000##FFFFFF
##311A641.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B66
Deuteranopia (green-blind)
#002863
Tritanopia (blue-blind)
#212D3D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #311a64;
/* rgb */ color: rgb(49, 26, 100);
/* oklch */ color: oklch(29.8% 0.122 291.4);
Tailwind
colors: {
  custom: {
    50: '#6f5891',
    500: '#311a64',
    950: '#000000',
  },
}
SCSS
$custom: #311a64;
$custom-light: #6f5891;
$custom-dark: #000000;
JSON
{
  "hex": "#311a64",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 100
  },
  "hsl": {
    "h": 258.649,
    "s": 58.73,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29829,
    "c": 0.12225,
    "h": 291.4
  },
  "luminance": 0.02312
}

Semantic roles & 50–950 ramp

primary
#311A64
secondary
#7E9A40
accent
#E246B1
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311A64

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

Preview Lab → · Contrast checker → · Palette generator →

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