#331230#331230

#331230 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.7% C 0.070 H 331.0°. Best body text is #FFFFFF at 16.54:1 contrast (WCAG AA passes).

Color values

HEX#331230
RGBrgb(51, 18, 48)
HSLhsl(305, 48%, 14%)
HSVhsv(305, 65%, 20%)
CMYKcmyk(0%, 64.7%, 5.9%, 80%)
CIE-LABlab(11.62, 21.58, -12.41)
CIE-LCHlch(11.62, 24.90, 330.09°)
OKLaboklab(24.71% 0.0613 -0.0339)
OKLCHoklch(24.71% 0.07 331)
XYZxyz(2.1150, 1.3500, 2.9449)
Luminance0.0135 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331230 #123315
analogous
#251233 #331230 #33121F
triadic
#331230 #303312 #123033
tetradic
#331230 #332512 #123315 #121F33
square
#331230 #332512 #123315 #121F33
split-complementary
#331230 #1F3312 #123325
monochromatic
#170815 #170815 #331230 #60225B #8D3285

Accessibility & contrast

On white

16.54
#331230 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#331230 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331230
16.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331230#FFFFFF#000000##FFFFFF
##3312301.0016.541.2716.54
#FFFFFF16.541.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101C31
Deuteranopia (green-blind)
#1A202F
Tritanopia (blue-blind)
#35151E
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #331230;
/* rgb */ color: rgb(51, 18, 48);
/* oklch */ color: oklch(24.7% 0.070 331.0);
Tailwind
colors: {
  custom: {
    50: '#6c5268',
    500: '#331230',
    950: '#000000',
  },
}
SCSS
$custom: #331230;
$custom-light: #6c5268;
$custom-dark: #000000;
JSON
{
  "hex": "#331230",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 48
  },
  "hsl": {
    "h": 305.455,
    "s": 47.826,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24707,
    "c": 0.07009,
    "h": 331
  },
  "luminance": 0.0135
}

Semantic roles & 50–950 ramp

primary
#331230
secondary
#356B3A
accent
#D75D50
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #331230

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

Preview Lab → · Contrast checker → · Palette generator →

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