#402F08#402F08

#402F08 is a dark, muted orange. Relative luminance 0.031; OKLCH L 31.7% C 0.058 H 83.7°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#402F08
RGBrgb(64, 47, 8)
HSLhsl(42, 78%, 14%)
HSVhsv(42, 88%, 25%)
CMYKcmyk(0%, 26.6%, 87.5%, 74.9%)
CIE-LABlab(20.60, 3.27, 25.95)
CIE-LCHlch(20.60, 26.16, 82.81°)
OKLaboklab(31.67% 0.0064 0.0579)
OKLCHoklch(31.67% 0.058 83.7)
XYZxyz(3.1749, 3.1408, 0.6687)
Luminance0.0314 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402F08 #081940
analogous
#401308 #402F08 #354008
triadic
#402F08 #08402F #2F0840
tetradic
#402F08 #084013 #081940 #400835
square
#402F08 #084013 #081940 #400835
split-complementary
#402F08 #083540 #130840
monochromatic
#1B1403 #1B1403 #402F08 #76570F #AD7F16

Accessibility & contrast

On white

12.90
#402F08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#402F08 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402F08
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402F08#FFFFFF#000000##FFFFFF
##402F081.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#362F03
Deuteranopia (green-blind)
#3A330A
Tritanopia (blue-blind)
#462A27
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #402f08;
/* rgb */ color: rgb(64, 47, 8);
/* oklch */ color: oklch(31.7% 0.058 83.7);
Tailwind
colors: {
  custom: {
    50: '#78674b',
    500: '#402f08',
    950: '#000000',
  },
}
SCSS
$custom: #402f08;
$custom-light: #78674b;
$custom-dark: #000000;
JSON
{
  "hex": "#402f08",
  "rgb": {
    "r": 64,
    "g": 47,
    "b": 8
  },
  "hsl": {
    "h": 41.786,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.31672,
    "c": 0.05824,
    "h": 83.7
  },
  "luminance": 0.03141
}

Semantic roles & 50–950 ramp

primary
#402F08
secondary
#25407E
accent
#6EF434
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090601
muted
#7B7A77

Preview Lab

Preview with #402F08

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

Preview Lab → · Contrast checker → · Palette generator →

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