#331057#331057

#331057 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.119 H 301.1°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#331057
RGBrgb(51, 16, 87)
HSLhsl(270, 69%, 20%)
HSVhsv(270, 82%, 34%)
CMYKcmyk(41.4%, 81.6%, 0%, 65.9%)
CIE-LABlab(14.19, 32.51, -35.66)
CIE-LCHlch(14.19, 48.25, 312.35°)
OKLaboklab(27.49% 0.0615 -0.1018)
OKLCHoklch(27.49% 0.119 301.1)
XYZxyz(3.2704, 1.7625, 9.1829)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331057 #345710
analogous
#101157 #331057 #561057
triadic
#331057 #573310 #105733
tetradic
#331057 #571011 #345710 #105756
square
#331057 #571011 #345710 #105756
split-complementary
#331057 #575610 #115710
monochromatic
#0F051A #150623 #331057 #511A8B #7023BE

Accessibility & contrast

On white

15.53
#331057 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#331057 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331057
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331057#FFFFFF#000000##FFFFFF
##3310571.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002459
Deuteranopia (green-blind)
#002456
Tritanopia (blue-blind)
#2B2233
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331057;
/* rgb */ color: rgb(51, 16, 87);
/* oklch */ color: oklch(27.5% 0.119 301.1);
Tailwind
colors: {
  custom: {
    50: '#6f5287',
    500: '#331057',
    950: '#000000',
  },
}
SCSS
$custom: #331057;
$custom-light: #6f5287;
$custom-dark: #000000;
JSON
{
  "hex": "#331057",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 87
  },
  "hsl": {
    "h": 269.577,
    "s": 68.932,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27491,
    "c": 0.11895,
    "h": 301.1
  },
  "luminance": 0.01763
}

Semantic roles & 50–950 ramp

primary
#331057
secondary
#629032
accent
#EC3C95
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #331057

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

Preview Lab → · Contrast checker → · Palette generator →

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