#300228#300228

#300228 is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 21.4% C 0.089 H 336.4°. Best body text is #FFFFFF at 18.03:1 contrast (WCAG AA passes).

Color values

HEX#300228
RGBrgb(48, 2, 40)
HSLhsl(310, 92%, 10%)
HSVhsv(310, 96%, 19%)
CMYKcmyk(0%, 95.8%, 16.7%, 81.2%)
CIE-LABlab(7.45, 27.68, -13.03)
CIE-LCHlch(7.45, 30.59, 334.79°)
OKLaboklab(21.4% 0.0817 -0.0357)
OKLCHoklch(21.4% 0.089 336.4)
XYZxyz(1.6237, 0.8252, 2.0808)
Luminance0.0083 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300228 #02300A
analogous
#210230 #300228 #300211
triadic
#300228 #283002 #022830
tetradic
#300228 #302102 #02300A #021130
square
#300228 #302102 #02300A #021130
split-complementary
#300228 #113002 #023021
monochromatic
#1D0118 #1D0118 #300228 #6B0459 #A6078A

Accessibility & contrast

On white

18.03
#300228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#300228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300228
18.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300228#FFFFFF#000000##FFFFFF
##3002281.0018.031.1718.03
#FFFFFF18.031.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031229
Deuteranopia (green-blind)
#131927
Tritanopia (blue-blind)
#330514
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #300228;
/* rgb */ color: rgb(48, 2, 40);
/* oklch */ color: oklch(21.4% 0.089 336.4);
Tailwind
colors: {
  custom: {
    50: '#6b4862',
    500: '#300228',
    950: '#000000',
  },
}
SCSS
$custom: #300228;
$custom-light: #6b4862;
$custom-dark: #000000;
JSON
{
  "hex": "#300228",
  "rgb": {
    "r": 48,
    "g": 2,
    "b": 40
  },
  "hsl": {
    "h": 310.435,
    "s": 92,
    "l": 9.804
  },
  "oklch": {
    "l": 0.21401,
    "c": 0.08917,
    "h": 336.4
  },
  "luminance": 0.00825
}

Semantic roles & 50–950 ramp

primary
#300228
secondary
#197529
accent
#FF4E29
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #300228

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

Preview Lab → · Contrast checker → · Palette generator →

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