#331358#331358

#331358 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.116 H 300.0°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#331358
RGBrgb(51, 19, 88)
HSLhsl(268, 64%, 21%)
HSVhsv(268, 78%, 35%)
CMYKcmyk(42%, 78.4%, 0%, 65.5%)
CIE-LABlab(14.81, 31.27, -35.32)
CIE-LCHlch(14.81, 47.17, 311.52°)
OKLaboklab(27.96% 0.0581 -0.1008)
OKLCHoklch(27.96% 0.116 300)
XYZxyz(3.3591, 1.8741, 9.4154)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331358 #385813
analogous
#131558 #331358 #551358
triadic
#331358 #583313 #135833
tetradic
#331358 #581315 #385813 #135855
square
#331358 #581315 #385813 #135855
split-complementary
#331358 #585513 #155813
monochromatic
#0F0519 #160826 #331358 #501E8A #6D29BD

Accessibility & contrast

On white

15.27
#331358 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#331358 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331358
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331358#FFFFFF#000000##FFFFFF
##3313581.0015.271.3715.27
#FFFFFF15.271.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#002557
Tritanopia (blue-blind)
#2A2434
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331358;
/* rgb */ color: rgb(51, 19, 88);
/* oklch */ color: oklch(28.0% 0.116 300.0);
Tailwind
colors: {
  custom: {
    50: '#6f5488',
    500: '#331358',
    950: '#000000',
  },
}
SCSS
$custom: #331358;
$custom-light: #6f5488;
$custom-dark: #000000;
JSON
{
  "hex": "#331358",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 88
  },
  "hsl": {
    "h": 267.826,
    "s": 64.486,
    "l": 20.98
  },
  "oklch": {
    "l": 0.2796,
    "c": 0.11638,
    "h": 300
  },
  "luminance": 0.01874
}

Semantic roles & 50–950 ramp

primary
#331358
secondary
#679037
accent
#E7409A
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #331358

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

Preview Lab → · Contrast checker → · Palette generator →

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