#331670#331670

#331670 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.142 H 290.0°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#331670
RGBrgb(51, 22, 112)
HSLhsl(259, 67%, 26%)
HSVhsv(259, 80%, 44%)
CMYKcmyk(54.5%, 80.4%, 0%, 56.1%)
CIE-LABlab(17.68, 36.73, -46.49)
CIE-LCHlch(17.68, 59.25, 308.31°)
OKLaboklab(30.69% 0.0486 -0.1336)
OKLCHoklch(30.69% 0.142 290)
XYZxyz(4.5759, 2.4473, 15.5574)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331670 #537016
analogous
#162670 #331670 #601670
triadic
#331670 #703316 #167033
tetradic
#331670 #701626 #537016 #167060
square
#331670 #701626 #537016 #167060
split-complementary
#331670 #706016 #267016
monochromatic
#0C051A #1C0C3D #331670 #4A20A3 #622BD5

Accessibility & contrast

On white

14.10
#331670 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#331670 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331670
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331670#FFFFFF#000000##FFFFFF
##3316701.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D73
Deuteranopia (green-blind)
#00296E
Tritanopia (blue-blind)
#1D2F42
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331670;
/* rgb */ color: rgb(51, 22, 112);
/* oklch */ color: oklch(30.7% 0.142 290.0);
Tailwind
colors: {
  custom: {
    50: '#72579a',
    500: '#331670',
    950: '#000000',
  },
}
SCSS
$custom: #331670;
$custom-light: #72579a;
$custom-dark: #000000;
JSON
{
  "hex": "#331670",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 112
  },
  "hsl": {
    "h": 259.333,
    "s": 67.164,
    "l": 26.275
  },
  "oklch": {
    "l": 0.3069,
    "c": 0.1422,
    "h": 290
  },
  "luminance": 0.02447
}

Semantic roles & 50–950 ramp

primary
#331670
secondary
#84A63C
accent
#EA3EB3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331670

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

Preview Lab → · Contrast checker → · Palette generator →

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