#311365#311365

#311365 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.132 H 292.8°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#311365
RGBrgb(49, 19, 101)
HSLhsl(262, 68%, 24%)
HSVhsv(262, 81%, 40%)
CMYKcmyk(51.5%, 81.2%, 0%, 60.4%)
CIE-LABlab(15.79, 34.66, -42.40)
CIE-LCHlch(15.79, 54.77, 309.26°)
OKLaboklab(28.97% 0.0512 -0.1217)
OKLCHoklch(28.97% 0.132 292.8)
XYZxyz(3.8478, 2.0582, 12.5039)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311365 #476513
analogous
#131E65 #311365 #5A1365
triadic
#311365 #653113 #136531
tetradic
#311365 #65131E #476513 #13655A
square
#311365 #65131E #476513 #13655A
split-complementary
#311365 #655A13 #1E6513
monochromatic
#0C051A #180931 #311365 #4A1D99 #6326CC

Accessibility & contrast

On white

14.88
#311365 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#311365 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311365
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311365#FFFFFF#000000##FFFFFF
##3113651.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002867
Deuteranopia (green-blind)
#002663
Tritanopia (blue-blind)
#202A3B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #311365;
/* rgb */ color: rgb(49, 19, 101);
/* oklch */ color: oklch(29.0% 0.132 292.8);
Tailwind
colors: {
  custom: {
    50: '#705492',
    500: '#311365',
    950: '#000000',
  },
}
SCSS
$custom: #311365;
$custom-light: #705492;
$custom-dark: #000000;
JSON
{
  "hex": "#311365",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 101
  },
  "hsl": {
    "h": 261.951,
    "s": 68.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28972,
    "c": 0.13205,
    "h": 292.8
  },
  "luminance": 0.02058
}

Semantic roles & 50–950 ramp

primary
#311365
secondary
#779D37
accent
#EB3DAB
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311365

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

Preview Lab → · Contrast checker → · Palette generator →

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