#300227#300227

#300227 is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 21.3% C 0.088 H 337.5°. Best body text is #FFFFFF at 18.05:1 contrast (WCAG AA passes).

Color values

HEX#300227
RGBrgb(48, 2, 39)
HSLhsl(312, 92%, 10%)
HSVhsv(312, 96%, 19%)
CMYKcmyk(0%, 95.8%, 18.7%, 81.2%)
CIE-LABlab(7.39, 27.50, -12.37)
CIE-LCHlch(7.39, 30.15, 335.78°)
OKLaboklab(21.34% 0.0817 -0.0338)
OKLCHoklch(21.34% 0.088 337.5)
XYZxyz(1.6069, 0.8184, 1.9924)
Luminance0.0082 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300227 #02300B
analogous
#220230 #300227 #300210
triadic
#300227 #273002 #022730
tetradic
#300227 #302202 #02300B #021030
square
#300227 #302202 #02300B #021030
split-complementary
#300227 #103002 #023022
monochromatic
#1D0118 #1D0118 #300227 #6B0457 #A60786

Accessibility & contrast

On white

18.05
#300227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#300227 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300227
18.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300227#FFFFFF#000000##FFFFFF
##3002271.0018.051.1618.05
#FFFFFF18.051.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031228
Deuteranopia (green-blind)
#141926
Tritanopia (blue-blind)
#330413
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #300227;
/* rgb */ color: rgb(48, 2, 39);
/* oklch */ color: oklch(21.3% 0.088 337.5);
Tailwind
colors: {
  custom: {
    50: '#6b4861',
    500: '#300227',
    950: '#000000',
  },
}
SCSS
$custom: #300227;
$custom-light: #6b4861;
$custom-dark: #000000;
JSON
{
  "hex": "#300227",
  "rgb": {
    "r": 48,
    "g": 2,
    "b": 39
  },
  "hsl": {
    "h": 311.739,
    "s": 92,
    "l": 9.804
  },
  "oklch": {
    "l": 0.21335,
    "c": 0.08836,
    "h": 337.5
  },
  "luminance": 0.00818
}

Semantic roles & 50–950 ramp

primary
#300227
secondary
#19752B
accent
#FF5329
background
#F6F4F5
surface
#EBE7E9
border
#C6C3C5
text
#070105
muted
#7A7779

Preview Lab

Preview with #300227

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

Preview Lab → · Contrast checker → · Palette generator →

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