#40262C#40262C

#40262C is a dark, muted red. Relative luminance 0.027; OKLCH L 30.4% C 0.040 H 4.7°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#40262C
RGBrgb(64, 38, 44)
HSLhsl(346, 25%, 20%)
HSVhsv(346, 41%, 25%)
CMYKcmyk(0%, 40.6%, 31.2%, 74.9%)
CIE-LABlab(18.62, 13.27, 1.20)
CIE-LCHlch(18.62, 13.32, 5.16°)
OKLaboklab(30.36% 0.0401 0.0033)
OKLCHoklch(30.36% 0.04 4.7)
XYZxyz(3.2622, 2.6583, 2.7237)
Luminance0.0266 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40262C #26403A
analogous
#402639 #40262C #402D26
triadic
#40262C #2C4026 #262C40
tetradic
#40262C #394026 #26403A #2D2640
square
#40262C #394026 #26403A #2D2640
split-complementary
#40262C #26402D #263940
monochromatic
#130B0D #1A0F12 #40262C #663D46 #8D5461

Accessibility & contrast

On white

13.71
#40262C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#40262C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40262C
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40262C#FFFFFF#000000##FFFFFF
##40262C1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A2A2C
Deuteranopia (green-blind)
#302F2B
Tritanopia (blue-blind)
#442428
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #40262c;
/* rgb */ color: rgb(64, 38, 44);
/* oklch */ color: oklch(30.4% 0.040 4.7);
Tailwind
colors: {
  custom: {
    50: '#766065',
    500: '#40262c',
    950: '#000000',
  },
}
SCSS
$custom: #40262c;
$custom-light: #766065;
$custom-dark: #000000;
JSON
{
  "hex": "#40262c",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 44
  },
  "hsl": {
    "h": 346.154,
    "s": 25.49,
    "l": 20
  },
  "oklch": {
    "l": 0.30357,
    "c": 0.04027,
    "h": 4.7
  },
  "luminance": 0.02658
}

Semantic roles & 50–950 ramp

primary
#40262C
secondary
#50726A
accent
#C2AD66
background
#F7F5F6
surface
#EDE9EB
border
#C8C5C6
text
#080505
muted
#7B797A

Preview Lab

Preview with #40262C

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

Preview Lab → · Contrast checker → · Palette generator →

#40262C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva