#311658#311658

#311658 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.1% C 0.112 H 297.4°. Best body text is #FFFFFF at 15.15:1 contrast (WCAG AA passes).

Color values

HEX#311658
RGBrgb(49, 22, 88)
HSLhsl(265, 60%, 22%)
HSVhsv(265, 75%, 35%)
CMYKcmyk(44.3%, 75%, 0%, 65.5%)
CIE-LABlab(15.12, 29.21, -34.82)
CIE-LCHlch(15.12, 45.45, 309.99°)
OKLaboklab(28.12% 0.0515 -0.0995)
OKLCHoklch(28.12% 0.112 297.4)
XYZxyz(3.3145, 1.9313, 9.4288)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311658 #3D5816
analogous
#161C58 #311658 #521658
triadic
#311658 #583116 #165831
tetradic
#311658 #58161C #3D5816 #165852
square
#311658 #58161C #3D5816 #165852
split-complementary
#311658 #585216 #1C5816
monochromatic
#0E0618 #160A27 #311658 #4C2289 #682EBA

Accessibility & contrast

On white

15.15
#311658 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311658
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311658#FFFFFF#000000##FFFFFF
##3116581.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#002557
Tritanopia (blue-blind)
#272635
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #311658;
/* rgb */ color: rgb(49, 22, 88);
/* oklch */ color: oklch(28.1% 0.112 297.4);
Tailwind
colors: {
  custom: {
    50: '#6d5588',
    500: '#311658',
    950: '#000000',
  },
}
SCSS
$custom: #311658;
$custom-light: #6d5588;
$custom-dark: #000000;
JSON
{
  "hex": "#311658",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 88
  },
  "hsl": {
    "h": 264.545,
    "s": 60,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28119,
    "c": 0.11202,
    "h": 297.4
  },
  "luminance": 0.01931
}

Semantic roles & 50–950 ramp

primary
#311658
secondary
#6D8F3B
accent
#E345A2
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311658

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

Preview Lab → · Contrast checker → · Palette generator →

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