#331128#331128

#331128 is a very dark, moderate pink. Relative luminance 0.013; OKLCH L 24.1% C 0.064 H 341.8°. Best body text is #FFFFFF at 16.78:1 contrast (WCAG AA passes).

Color values

HEX#331128
RGBrgb(51, 17, 40)
HSLhsl(319, 50%, 13%)
HSVhsv(319, 67%, 20%)
CMYKcmyk(0%, 66.7%, 21.6%, 80%)
CIE-LABlab(10.98, 20.56, -7.52)
CIE-LCHlch(10.98, 21.89, 339.91°)
OKLaboklab(24.1% 0.0611 -0.0201)
OKLCHoklch(24.1% 0.064 341.8)
XYZxyz(1.9487, 1.2581, 2.1473)
Luminance0.0126 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331128 #11331C
analogous
#2D1133 #331128 #331117
triadic
#331128 #283311 #112833
tetradic
#331128 #332D11 #11331C #111733
square
#331128 #332D11 #11331C #111733
split-complementary
#331128 #173311 #11332D
monochromatic
#170812 #170812 #331128 #61204C #8F3070

Accessibility & contrast

On white

16.78
#331128 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#331128 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331128
16.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331128#FFFFFF#000000##FFFFFF
##3311281.0016.781.2516.78
#FFFFFF16.781.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#131A29
Deuteranopia (green-blind)
#1D1F27
Tritanopia (blue-blind)
#36111A
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #331128;
/* rgb */ color: rgb(51, 17, 40);
/* oklch */ color: oklch(24.1% 0.064 341.8);
Tailwind
colors: {
  custom: {
    50: '#6c5161',
    500: '#331128',
    950: '#000000',
  },
}
SCSS
$custom: #331128;
$custom-light: #6c5161;
$custom-dark: #000000;
JSON
{
  "hex": "#331128",
  "rgb": {
    "r": 51,
    "g": 17,
    "b": 40
  },
  "hsl": {
    "h": 319.412,
    "s": 50,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24096,
    "c": 0.0643,
    "h": 341.8
  },
  "luminance": 0.01258
}

Semantic roles & 50–950 ramp

primary
#331128
secondary
#346C46
accent
#DA7B4E
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#070205
muted
#7A7879

Preview Lab

Preview with #331128

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

Preview Lab → · Contrast checker → · Palette generator →

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