#331657#331657

#331657 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.111 H 299.7°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).

Color values

HEX#331657
RGBrgb(51, 22, 87)
HSLhsl(267, 60%, 21%)
HSVhsv(267, 75%, 34%)
CMYKcmyk(41.4%, 74.7%, 0%, 65.9%)
CIE-LABlab(15.31, 29.35, -33.84)
CIE-LCHlch(15.31, 44.80, 310.94°)
OKLaboklab(28.28% 0.0549 -0.0965)
OKLCHoklch(28.28% 0.111 299.7)
XYZxyz(3.3720, 1.9657, 9.2167)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331657 #3A5716
analogous
#161A57 #331657 #541657
triadic
#331657 #573316 #165733
tetradic
#331657 #57161A #3A5716 #165754
square
#331657 #57161A #3A5716 #165754
split-complementary
#331657 #575416 #1A5716
monochromatic
#0E0618 #160A26 #331657 #502288 #6C2FB9

Accessibility & contrast

On white

15.07
#331657 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#331657 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331657
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331657#FFFFFF#000000##FFFFFF
##3316571.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002659
Deuteranopia (green-blind)
#002656
Tritanopia (blue-blind)
#2B2634
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331657;
/* rgb */ color: rgb(51, 22, 87);
/* oklch */ color: oklch(28.3% 0.111 299.7);
Tailwind
colors: {
  custom: {
    50: '#6e5687',
    500: '#331657',
    950: '#000000',
  },
}
SCSS
$custom: #331657;
$custom-light: #6e5687;
$custom-dark: #000000;
JSON
{
  "hex": "#331657",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 87
  },
  "hsl": {
    "h": 266.769,
    "s": 59.633,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28283,
    "c": 0.11103,
    "h": 299.7
  },
  "luminance": 0.01966
}

Semantic roles & 50–950 ramp

primary
#331657
secondary
#698E3A
accent
#E3459C
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331657

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

Preview Lab → · Contrast checker → · Palette generator →

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