#40262A#40262A

#40262A is a dark, muted red. Relative luminance 0.026; OKLCH L 30.3% C 0.040 H 9.7°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#40262A
RGBrgb(64, 38, 42)
HSLhsl(351, 25%, 20%)
HSVhsv(351, 41%, 25%)
CMYKcmyk(0%, 40.6%, 34.4%, 74.9%)
CIE-LABlab(18.56, 12.93, 2.51)
CIE-LCHlch(18.56, 13.17, 10.96°)
OKLaboklab(30.29% 0.0392 0.0067)
OKLCHoklch(30.29% 0.04 9.7)
XYZxyz(3.2255, 2.6436, 2.5304)
Luminance0.0264 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40262A #26403C
analogous
#402637 #40262A #402F26
triadic
#40262A #2A4026 #262A40
tetradic
#40262A #374026 #26403C #2F2640
square
#40262A #374026 #26403C #2F2640
split-complementary
#40262A #26402F #263740
monochromatic
#130B0D #1A0F11 #40262A #663D43 #8D545C

Accessibility & contrast

On white

13.74
#40262A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40262A
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40262A#FFFFFF#000000##FFFFFF
##40262A1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A2A2A
Deuteranopia (green-blind)
#312F29
Tritanopia (blue-blind)
#452427
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #40262a;
/* rgb */ color: rgb(64, 38, 42);
/* oklch */ color: oklch(30.3% 0.040 9.7);
Tailwind
colors: {
  custom: {
    50: '#766063',
    500: '#40262a',
    950: '#000000',
  },
}
SCSS
$custom: #40262a;
$custom-light: #766063;
$custom-dark: #000000;
JSON
{
  "hex": "#40262a",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 42
  },
  "hsl": {
    "h": 350.769,
    "s": 25.49,
    "l": 20
  },
  "oklch": {
    "l": 0.30287,
    "c": 0.03977,
    "h": 9.7
  },
  "luminance": 0.02643
}

Semantic roles & 50–950 ramp

primary
#40262A
secondary
#50726D
accent
#C2B466
background
#F7F5F5
surface
#EDE9EA
border
#C8C5C6
text
#080505
muted
#7B7979

Preview Lab

Preview with #40262A

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

Preview Lab → · Contrast checker → · Palette generator →

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