#40370B#40370B

#40370B is a dark, moderate yellow. Relative luminance 0.038; OKLCH L 33.7% C 0.061 H 97.2°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#40370B
RGBrgb(64, 55, 11)
HSLhsl(50, 71%, 15%)
HSVhsv(50, 83%, 25%)
CMYKcmyk(0%, 14.1%, 82.8%, 74.9%)
CIE-LABlab(23.16, -1.79, 27.45)
CIE-LCHlch(23.16, 27.51, 93.73°)
OKLaboklab(33.7% -0.0077 0.0608)
OKLCHoklch(33.7% 0.061 97.2)
XYZxyz(3.5411, 3.8467, 0.8725)
Luminance0.0385 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40370B #0B1440
analogous
#401C0B #40370B #2F400B
triadic
#40370B #0B4037 #370B40
tetradic
#40370B #0B401C #0B1440 #400B2F
square
#40370B #0B401C #0B1440 #400B2F
split-complementary
#40370B #0B2F40 #1C0B40
monochromatic
#1A1604 #1A1604 #40370B #746414 #A8911D

Accessibility & contrast

On white

11.87
#40370B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#40370B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40370B
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40370B#FFFFFF#000000##FFFFFF
##40370B1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D3505
Deuteranopia (green-blind)
#40380E
Tritanopia (blue-blind)
#46322E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #40370b;
/* rgb */ color: rgb(64, 55, 11);
/* oklch */ color: oklch(33.7% 0.061 97.2);
Tailwind
colors: {
  custom: {
    50: '#776d4d',
    500: '#40370b',
    950: '#000000',
  },
}
SCSS
$custom: #40370b;
$custom-light: #776d4d;
$custom-dark: #000000;
JSON
{
  "hex": "#40370b",
  "rgb": {
    "r": 64,
    "g": 55,
    "b": 11
  },
  "hsl": {
    "h": 49.811,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.33698,
    "c": 0.06131,
    "h": 97.2
  },
  "luminance": 0.03847
}

Semantic roles & 50–950 ramp

primary
#40370B
secondary
#2A387D
accent
#59ED3A
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090701
muted
#7B7A77

Preview Lab

Preview with #40370B

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

Preview Lab → · Contrast checker → · Palette generator →

#40370B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva