#311462#311462

#311462 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.127 H 293.7°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#311462
RGBrgb(49, 20, 98)
HSLhsl(262, 66%, 23%)
HSVhsv(262, 80%, 38%)
CMYKcmyk(50%, 79.6%, 0%, 61.6%)
CIE-LABlab(15.67, 33.27, -40.61)
CIE-LCHlch(15.67, 52.50, 309.32°)
OKLaboklab(28.8% 0.0512 -0.1165)
OKLCHoklch(28.8% 0.127 293.7)
XYZxyz(3.7208, 2.0350, 11.7497)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311462 #456214
analogous
#141E62 #311462 #581462
triadic
#311462 #623114 #146231
tetradic
#311462 #62141E #456214 #146258
square
#311462 #62141E #456214 #146258
split-complementary
#311462 #625814 #1E6214
monochromatic
#0D0519 #180A2F #311462 #4A1E95 #6429C8

Accessibility & contrast

On white

14.93
#311462 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311462
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311462#FFFFFF#000000##FFFFFF
##3114621.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002864
Deuteranopia (green-blind)
#002661
Tritanopia (blue-blind)
#22293A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #311462;
/* rgb */ color: rgb(49, 20, 98);
/* oklch */ color: oklch(28.8% 0.127 293.7);
Tailwind
colors: {
  custom: {
    50: '#6f558f',
    500: '#311462',
    950: '#000000',
  },
}
SCSS
$custom: #311462;
$custom-light: #6f558f;
$custom-dark: #000000;
JSON
{
  "hex": "#311462",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 98
  },
  "hsl": {
    "h": 262.308,
    "s": 66.102,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28796,
    "c": 0.12723,
    "h": 293.7
  },
  "luminance": 0.02035
}

Semantic roles & 50–950 ramp

primary
#311462
secondary
#759938
accent
#E93FAA
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #311462

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

Preview Lab → · Contrast checker → · Palette generator →

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