#400C30#400C30

#400C30 is a dark, moderate pink. Relative luminance 0.016; OKLCH L 26.2% C 0.091 H 342.8°. Best body text is #FFFFFF at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#400C30
RGBrgb(64, 12, 48)
HSLhsl(318, 68%, 15%)
HSVhsv(318, 81%, 25%)
CMYKcmyk(0%, 81.2%, 25%, 74.9%)
CIE-LABlab(13.03, 28.93, -10.04)
CIE-LCHlch(13.03, 30.62, 340.87°)
OKLaboklab(26.23% 0.087 -0.0269)
OKLCHoklch(26.23% 0.091 342.8)
XYZxyz(2.7794, 1.5666, 2.9517)
Luminance0.0157 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C30 #0C401C
analogous
#360C40 #400C30 #400C16
triadic
#400C30 #30400C #0C3040
tetradic
#400C30 #40360C #0C401C #0C1640
square
#400C30 #40360C #0C401C #0C1640
split-complementary
#400C30 #16400C #0C4036
monochromatic
#1A0513 #1A0513 #400C30 #741657 #A71F7D

Accessibility & contrast

On white

15.99
#400C30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#400C30 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400C30
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C30#FFFFFF#000000##FFFFFF
##400C301.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#111C31
Deuteranopia (green-blind)
#21252F
Tritanopia (blue-blind)
#450C1C
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #400c30;
/* rgb */ color: rgb(64, 12, 48);
/* oklch */ color: oklch(26.2% 0.091 342.8);
Tailwind
colors: {
  custom: {
    50: '#775068',
    500: '#400c30',
    950: '#000000',
  },
}
SCSS
$custom: #400c30;
$custom-light: #775068;
$custom-dark: #000000;
JSON
{
  "hex": "#400c30",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 48
  },
  "hsl": {
    "h": 318.462,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.26226,
    "c": 0.09105,
    "h": 342.8
  },
  "luminance": 0.01566
}

Semantic roles & 50–950 ramp

primary
#400C30
secondary
#2C7C44
accent
#EB723D
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090206
muted
#7B787A

Preview Lab

Preview with #400C30

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

Preview Lab → · Contrast checker → · Palette generator →

#400C30 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva