#331748#331748

#331748 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.090 H 307.8°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#331748
RGBrgb(51, 23, 72)
HSLhsl(274, 52%, 19%)
HSVhsv(274, 68%, 28%)
CMYKcmyk(29.2%, 68.1%, 0%, 71.8%)
CIE-LABlab(14.31, 24.51, -25.19)
CIE-LCHlch(14.31, 35.15, 314.22°)
OKLaboklab(27.19% 0.0552 -0.0711)
OKLCHoklch(27.19% 0.09 307.8)
XYZxyz(2.8411, 1.7845, 6.3244)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331748 #2C4817
analogous
#1A1748 #331748 #481744
triadic
#331748 #483317 #174833
tetradic
#331748 #481A17 #2C4817 #174448
square
#331748 #481A17 #2C4817 #174448
split-complementary
#331748 #444817 #17481A
monochromatic
#100717 #12081A #331748 #542676 #7535A5

Accessibility & contrast

On white

15.48
#331748 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#331748 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331748
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331748#FFFFFF#000000##FFFFFF
##3317481.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03234A
Deuteranopia (green-blind)
#0F2547
Tritanopia (blue-blind)
#30212D
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331748;
/* rgb */ color: rgb(51, 23, 72);
/* oklch */ color: oklch(27.2% 0.090 307.8);
Tailwind
colors: {
  custom: {
    50: '#6d567b',
    500: '#331748',
    950: '#000000',
  },
}
SCSS
$custom: #331748;
$custom-light: #6d567b;
$custom-dark: #000000;
JSON
{
  "hex": "#331748",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 72
  },
  "hsl": {
    "h": 274.286,
    "s": 51.579,
    "l": 18.627
  },
  "oklch": {
    "l": 0.27185,
    "c": 0.09,
    "h": 307.8
  },
  "luminance": 0.01784
}

Semantic roles & 50–950 ramp

primary
#331748
secondary
#597F3C
accent
#DB4D8A
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #331748

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

Preview Lab → · Contrast checker → · Palette generator →

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