#331674#331674

#331674 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.147 H 288.8°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#331674
RGBrgb(51, 22, 116)
HSLhsl(259, 68%, 27%)
HSVhsv(259, 81%, 45%)
CMYKcmyk(56%, 81%, 0%, 54.5%)
CIE-LABlab(18.09, 37.92, -48.40)
CIE-LCHlch(18.09, 61.48, 308.08°)
OKLaboklab(31.1% 0.0474 -0.1392)
OKLCHoklch(31.1% 0.147 288.8)
XYZxyz(4.8036, 2.5383, 16.7564)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331674 #577416
analogous
#162874 #331674 #621674
triadic
#331674 #743316 #167433
tetradic
#331674 #741628 #577416 #167462
square
#331674 #741628 #577416 #167462
split-complementary
#331674 #746216 #287416
monochromatic
#0B051A #1C0C41 #331674 #4A20A7 #622DD7

Accessibility & contrast

On white

13.93
#331674 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#331674 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331674
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331674#FFFFFF#000000##FFFFFF
##3316741.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002A72
Tritanopia (blue-blind)
#193145
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331674;
/* rgb */ color: rgb(51, 22, 116);
/* oklch */ color: oklch(31.1% 0.147 288.8);
Tailwind
colors: {
  custom: {
    50: '#73579d',
    500: '#331674',
    950: '#000000',
  },
}
SCSS
$custom: #331674;
$custom-light: #73579d;
$custom-dark: #000000;
JSON
{
  "hex": "#331674",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 116
  },
  "hsl": {
    "h": 258.511,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31103,
    "c": 0.14704,
    "h": 288.8
  },
  "luminance": 0.02539
}

Semantic roles & 50–950 ramp

primary
#331674
secondary
#88AA3C
accent
#EB3DB5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331674

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

Preview Lab → · Contrast checker → · Palette generator →

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