#402F27#402F27

#402F27 is a dark, muted orange. Relative luminance 0.033; OKLCH L 32.2% C 0.029 H 46.4°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#402F27
RGBrgb(64, 47, 39)
HSLhsl(19, 24%, 20%)
HSVhsv(19, 39%, 25%)
CMYKcmyk(0%, 26.6%, 39.1%, 74.9%)
CIE-LABlab(21.09, 6.42, 8.14)
CIE-LCHlch(21.09, 10.37, 51.76°)
OKLaboklab(32.22% 0.0198 0.0207)
OKLCHoklch(32.22% 0.029 46.4)
XYZxyz(3.4972, 3.2697, 2.3660)
Luminance0.0327 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402F27 #273840
analogous
#40272B #402F27 #403B27
triadic
#402F27 #27402F #2F2740
tetradic
#402F27 #2B4027 #273840 #3B2740
square
#402F27 #2B4027 #273840 #3B2740
split-complementary
#402F27 #27403B #272B40
monochromatic
#130E0C #1A1310 #402F27 #664B3E #8C6755

Accessibility & contrast

On white

12.70
#402F27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#402F27 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402F27
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402F27#FFFFFF#000000##FFFFFF
##402F271.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#333126
Deuteranopia (green-blind)
#373427
Tritanopia (blue-blind)
#442C2D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #402f27;
/* rgb */ color: rgb(64, 47, 39);
/* oklch */ color: oklch(32.2% 0.029 46.4);
Tailwind
colors: {
  custom: {
    50: '#756761',
    500: '#402f27',
    950: '#000000',
  },
}
SCSS
$custom: #402f27;
$custom-light: #756761;
$custom-dark: #000000;
JSON
{
  "hex": "#402f27",
  "rgb": {
    "r": 64,
    "g": 47,
    "b": 39
  },
  "hsl": {
    "h": 19.2,
    "s": 24.272,
    "l": 20.196
  },
  "oklch": {
    "l": 0.32218,
    "c": 0.02865,
    "h": 46.4
  },
  "luminance": 0.0327
}

Semantic roles & 50–950 ramp

primary
#402F27
secondary
#516772
accent
#A4C167
background
#F7F6F5
surface
#EDEBE9
border
#C8C6C5
text
#080605
muted
#7B7A79

Preview Lab

Preview with #402F27

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

Preview Lab → · Contrast checker → · Palette generator →

#402F27 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva