#311657#311657

#311657 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.111 H 297.8°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#311657
RGBrgb(49, 22, 87)
HSLhsl(265, 60%, 21%)
HSVhsv(265, 75%, 34%)
CMYKcmyk(43.7%, 74.7%, 0%, 65.9%)
CIE-LABlab(15.03, 28.91, -34.29)
CIE-LCHlch(15.03, 44.85, 310.13°)
OKLaboklab(28.03% 0.0517 -0.0979)
OKLCHoklch(28.03% 0.111 297.8)
XYZxyz(3.2734, 1.9149, 9.2121)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311657 #3C5716
analogous
#161C57 #311657 #521657
triadic
#311657 #573116 #165731
tetradic
#311657 #57161C #3C5716 #165752
square
#311657 #57161C #3C5716 #165752
split-complementary
#311657 #575216 #1C5716
monochromatic
#0E0618 #150A26 #311657 #4D2288 #682FB9

Accessibility & contrast

On white

15.18
#311657 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#311657 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311657
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311657#FFFFFF#000000##FFFFFF
##3116571.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002659
Deuteranopia (green-blind)
#002556
Tritanopia (blue-blind)
#282634
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #311657;
/* rgb */ color: rgb(49, 22, 87);
/* oklch */ color: oklch(28.0% 0.111 297.8);
Tailwind
colors: {
  custom: {
    50: '#6d5587',
    500: '#311657',
    950: '#000000',
  },
}
SCSS
$custom: #311657;
$custom-light: #6d5587;
$custom-dark: #000000;
JSON
{
  "hex": "#311657",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 87
  },
  "hsl": {
    "h": 264.923,
    "s": 59.633,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28028,
    "c": 0.11072,
    "h": 297.8
  },
  "luminance": 0.01915
}

Semantic roles & 50–950 ramp

primary
#311657
secondary
#6B8E3A
accent
#E345A1
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311657

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

Preview Lab → · Contrast checker → · Palette generator →

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