#311757#311757

#311757 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.109 H 297.5°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#311757
RGBrgb(49, 23, 87)
HSLhsl(264, 58%, 22%)
HSVhsv(264, 74%, 34%)
CMYKcmyk(43.7%, 73.6%, 0%, 65.9%)
CIE-LABlab(15.24, 28.33, -33.95)
CIE-LCHlch(15.24, 44.22, 309.84°)
OKLaboklab(28.18% 0.0505 -0.0969)
OKLCHoklch(28.18% 0.109 297.5)
XYZxyz(3.2929, 1.9538, 9.2186)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311757 #3D5717
analogous
#171D57 #311757 #511757
triadic
#311757 #573117 #175731
tetradic
#311757 #57171D #3D5717 #175751
square
#311757 #57171D #3D5717 #175751
split-complementary
#311757 #575117 #1D5717
monochromatic
#0E0618 #160A27 #311757 #4C2487 #6831B8

Accessibility & contrast

On white

15.10
#311757 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311757
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311757#FFFFFF#000000##FFFFFF
##3117571.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311757;
/* rgb */ color: rgb(49, 23, 87);
/* oklch */ color: oklch(28.2% 0.109 297.5);
Tailwind
colors: {
  custom: {
    50: '#6d5687',
    500: '#311757',
    950: '#000000',
  },
}
SCSS
$custom: #311757;
$custom-light: #6d5687;
$custom-dark: #000000;
JSON
{
  "hex": "#311757",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 87
  },
  "hsl": {
    "h": 264.375,
    "s": 58.182,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28177,
    "c": 0.10929,
    "h": 297.5
  },
  "luminance": 0.01954
}

Semantic roles & 50–950 ramp

primary
#311757
secondary
#6D8E3C
accent
#E146A2
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311757

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

Preview Lab → · Contrast checker → · Palette generator →

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