#300218#300218

#300218 is a very dark, moderate pink. Relative luminance 0.007; OKLCH L 20.5% C 0.078 H 356.4°. Best body text is #FFFFFF at 18.30:1 contrast (WCAG AA passes).

Color values

HEX#300218
RGBrgb(48, 2, 24)
HSLhsl(331, 92%, 10%)
HSVhsv(331, 96%, 19%)
CMYKcmyk(0%, 95.8%, 50%, 81.2%)
CIE-LABlab(6.67, 25.03, -1.84)
CIE-LCHlch(6.67, 25.10, 355.79°)
OKLaboklab(20.51% 0.0783 -0.0049)
OKLCHoklch(20.51% 0.078 356.4)
XYZxyz(1.4056, 0.7379, 0.9324)
Luminance0.0074 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300218 #02301A
analogous
#30022F #300218 #300302
triadic
#300218 #183002 #021830
tetradic
#300218 #2F3002 #02301A #030230
square
#300218 #2F3002 #02301A #030230
split-complementary
#300218 #023003 #022F30
monochromatic
#1D010F #1D010F #300218 #6B0435 #A60753

Accessibility & contrast

On white

18.30
#300218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#300218 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300218
18.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300218#FFFFFF#000000##FFFFFF
##3002181.0018.301.1518.30
#FFFFFF18.301.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B0F19
Deuteranopia (green-blind)
#181817
Tritanopia (blue-blind)
#35000B
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #300218;
/* rgb */ color: rgb(48, 2, 24);
/* oklch */ color: oklch(20.5% 0.078 356.4);
Tailwind
colors: {
  custom: {
    50: '#6b4754',
    500: '#300218',
    950: '#000000',
  },
}
SCSS
$custom: #300218;
$custom-light: #6b4754;
$custom-dark: #000000;
JSON
{
  "hex": "#300218",
  "rgb": {
    "r": 48,
    "g": 2,
    "b": 24
  },
  "hsl": {
    "h": 331.304,
    "s": 92,
    "l": 9.804
  },
  "oklch": {
    "l": 0.20505,
    "c": 0.0784,
    "h": 356.4
  },
  "luminance": 0.00738
}

Semantic roles & 50–950 ramp

primary
#300218
secondary
#197549
accent
#FF9929
background
#F6F4F4
surface
#ECE6E7
border
#C7C2C3
text
#070002
muted
#7A7778

Preview Lab

Preview with #300218

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

Preview Lab → · Contrast checker → · Palette generator →

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