#311A6E#311A6E

#311A6E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.135 H 288.3°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#311A6E
RGBrgb(49, 26, 110)
HSLhsl(256, 62%, 27%)
HSVhsv(256, 76%, 43%)
CMYKcmyk(55.5%, 76.4%, 0%, 56.9%)
CIE-LABlab(18.00, 33.67, -44.68)
CIE-LCHlch(18.00, 55.94, 307.00°)
OKLaboklab(30.8% 0.0424 -0.1284)
OKLCHoklch(30.8% 0.135 288.3)
XYZxyz(4.4497, 2.5173, 15.0003)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A6E #576E1A
analogous
#1A2D6E #311A6E #5B1A6E
triadic
#311A6E #6E311A #1A6E31
tetradic
#311A6E #6E1A2D #576E1A #1A6E5B
square
#311A6E #6E1A2D #576E1A #1A6E5B
split-complementary
#311A6E #6E5B1A #2D6E1A
monochromatic
#0B0619 #1B0E3D #311A6E #4726A0 #5E34CF

Accessibility & contrast

On white

13.97
#311A6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#311A6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A6E
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A6E#FFFFFF#000000##FFFFFF
##311A6E1.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E70
Deuteranopia (green-blind)
#002A6C
Tritanopia (blue-blind)
#193142
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #311a6e;
/* rgb */ color: rgb(49, 26, 110);
/* oklch */ color: oklch(30.8% 0.135 288.3);
Tailwind
colors: {
  custom: {
    50: '#705998',
    500: '#311a6e',
    950: '#000000',
  },
}
SCSS
$custom: #311a6e;
$custom-light: #705998;
$custom-dark: #000000;
JSON
{
  "hex": "#311a6e",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 110
  },
  "hsl": {
    "h": 256.429,
    "s": 61.765,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30799,
    "c": 0.13525,
    "h": 288.3
  },
  "luminance": 0.02518
}

Semantic roles & 50–950 ramp

primary
#311A6E
secondary
#88A341
accent
#E543B9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #311A6E

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

Preview Lab → · Contrast checker → · Palette generator →

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