#331857#331857

#331857 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.6% C 0.108 H 299.0°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#331857
RGBrgb(51, 24, 87)
HSLhsl(266, 57%, 22%)
HSVhsv(266, 72%, 34%)
CMYKcmyk(41.4%, 72.4%, 0%, 65.9%)
CIE-LABlab(15.72, 28.20, -33.16)
CIE-LCHlch(15.72, 43.53, 310.38°)
OKLaboklab(28.58% 0.0525 -0.0945)
OKLCHoklch(28.58% 0.108 299)
XYZxyz(3.4117, 2.0452, 9.2300)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331857 #3C5718
analogous
#181D57 #331857 #531857
triadic
#331857 #573318 #185733
tetradic
#331857 #57181D #3C5718 #185753
square
#331857 #57181D #3C5718 #185753
split-complementary
#331857 #575318 #1D5718
monochromatic
#0E0718 #170B27 #331857 #4F2587 #6B32B7

Accessibility & contrast

On white

14.90
#331857 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331857
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331857#FFFFFF#000000##FFFFFF
##3318571.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002759
Deuteranopia (green-blind)
#002756
Tritanopia (blue-blind)
#2B2735
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331857;
/* rgb */ color: rgb(51, 24, 87);
/* oklch */ color: oklch(28.6% 0.108 299.0);
Tailwind
colors: {
  custom: {
    50: '#6e5787',
    500: '#331857',
    950: '#000000',
  },
}
SCSS
$custom: #331857;
$custom-light: #6e5787;
$custom-dark: #000000;
JSON
{
  "hex": "#331857",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 87
  },
  "hsl": {
    "h": 265.714,
    "s": 56.757,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28581,
    "c": 0.10812,
    "h": 299
  },
  "luminance": 0.02045
}

Semantic roles & 50–950 ramp

primary
#331857
secondary
#6B8E3D
accent
#E0489F
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331857

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

Preview Lab → · Contrast checker → · Palette generator →

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