#331368#331368

#331368 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.136 H 293.3°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#331368
RGBrgb(51, 19, 104)
HSLhsl(263, 69%, 24%)
HSVhsv(263, 82%, 41%)
CMYKcmyk(51%, 81.7%, 0%, 59.2%)
CIE-LABlab(16.35, 35.86, -43.45)
CIE-LCHlch(16.35, 56.34, 309.53°)
OKLaboklab(29.51% 0.0536 -0.1247)
OKLCHoklch(29.51% 0.136 293.3)
XYZxyz(4.0961, 2.1689, 13.2968)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331368 #486813
analogous
#131E68 #331368 #5E1368
triadic
#331368 #683313 #136833
tetradic
#331368 #68131E #486813 #13685E
square
#331368 #68131E #486813 #13685E
split-complementary
#331368 #685E13 #1E6813
monochromatic
#0D051A #1A0A34 #331368 #4C1C9C #6626CF

Accessibility & contrast

On white

14.65
#331368 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#331368 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331368
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331368#FFFFFF#000000##FFFFFF
##3313681.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296A
Deuteranopia (green-blind)
#002766
Tritanopia (blue-blind)
#222B3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331368;
/* rgb */ color: rgb(51, 19, 104);
/* oklch */ color: oklch(29.5% 0.136 293.3);
Tailwind
colors: {
  custom: {
    50: '#715594',
    500: '#331368',
    950: '#000000',
  },
}
SCSS
$custom: #331368;
$custom-light: #715594;
$custom-dark: #000000;
JSON
{
  "hex": "#331368",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 104
  },
  "hsl": {
    "h": 262.588,
    "s": 69.106,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29514,
    "c": 0.13574,
    "h": 293.3
  },
  "luminance": 0.02169
}

Semantic roles & 50–950 ramp

primary
#331368
secondary
#789F37
accent
#EC3CAA
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331368

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

Preview Lab → · Contrast checker → · Palette generator →

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