#311B63#311B63

#311B63 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.9% C 0.120 H 291.5°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#311B63
RGBrgb(49, 27, 99)
HSLhsl(258, 57%, 25%)
HSVhsv(258, 73%, 39%)
CMYKcmyk(50.5%, 72.7%, 0%, 61.2%)
CIE-LABlab(17.17, 29.64, -38.83)
CIE-LCHlch(17.17, 48.85, 307.36°)
OKLaboklab(29.89% 0.0438 -0.1113)
OKLCHoklch(29.89% 0.12 291.5)
XYZxyz(3.9101, 2.3375, 12.0471)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311B63 #4D631B
analogous
#1B2963 #311B63 #551B63
triadic
#311B63 #63311B #1B6331
tetradic
#311B63 #631B29 #4D631B #1B6355
square
#311B63 #631B29 #4D631B #1B6355
split-complementary
#311B63 #63551B #29631B
monochromatic
#0C0718 #190E33 #311B63 #492893 #6135C3

Accessibility & contrast

On white

14.31
#311B63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#311B63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311B63
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311B63#FFFFFF#000000##FFFFFF
##311B631.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B65
Deuteranopia (green-blind)
#002962
Tritanopia (blue-blind)
#212D3C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #311b63;
/* rgb */ color: rgb(49, 27, 99);
/* oklch */ color: oklch(29.9% 0.120 291.5);
Tailwind
colors: {
  custom: {
    50: '#6f5990',
    500: '#311b63',
    950: '#000000',
  },
}
SCSS
$custom: #311b63;
$custom-light: #6f5990;
$custom-dark: #000000;
JSON
{
  "hex": "#311b63",
  "rgb": {
    "r": 49,
    "g": 27,
    "b": 99
  },
  "hsl": {
    "h": 258.333,
    "s": 57.143,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29888,
    "c": 0.11958,
    "h": 291.5
  },
  "luminance": 0.02338
}

Semantic roles & 50–950 ramp

primary
#311B63
secondary
#7E9841
accent
#E047B2
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030D
muted
#7B787D

Preview Lab

Preview with #311B63

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

Preview Lab → · Contrast checker → · Palette generator →

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