#331457#331457

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

Color values

HEX#331457
RGBrgb(51, 20, 87)
HSLhsl(268, 63%, 21%)
HSVhsv(268, 77%, 34%)
CMYKcmyk(41.4%, 77%, 0%, 65.9%)
CIE-LABlab(14.91, 30.46, -34.48)
CIE-LCHlch(14.91, 46.01, 311.45°)
OKLaboklab(28% 0.0573 -0.0984)
OKLCHoklch(28% 0.114 300.2)
XYZxyz(3.3353, 1.8922, 9.2045)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331457 #385714
analogous
#141657 #331457 #541457
triadic
#331457 #573314 #145733
tetradic
#331457 #571416 #385714 #145754
square
#331457 #571416 #385714 #145754
split-complementary
#331457 #575414 #165714
monochromatic
#0F0619 #160925 #331457 #501F89 #6D2BBB

Accessibility & contrast

On white

15.24
#331457 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#331457 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331457
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331457#FFFFFF#000000##FFFFFF
##3314571.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#002556
Tritanopia (blue-blind)
#2B2434
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331457;
/* rgb */ color: rgb(51, 20, 87);
/* oklch */ color: oklch(28.0% 0.114 300.2);
Tailwind
colors: {
  custom: {
    50: '#6f5487',
    500: '#331457',
    950: '#000000',
  },
}
SCSS
$custom: #331457;
$custom-light: #6f5487;
$custom-dark: #000000;
JSON
{
  "hex": "#331457",
  "rgb": {
    "r": 51,
    "g": 20,
    "b": 87
  },
  "hsl": {
    "h": 267.761,
    "s": 62.617,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28002,
    "c": 0.11382,
    "h": 300.2
  },
  "luminance": 0.01892
}

Semantic roles & 50–950 ramp

primary
#331457
secondary
#678F38
accent
#E6429A
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #331457

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

Preview Lab → · Contrast checker → · Palette generator →

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