#24271F#24271F

#24271F is a dark, near-neutral yellow-green. Relative luminance 0.019; OKLCH L 26.7% C 0.015 H 124.2°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#24271F
RGBrgb(36, 39, 31)
HSLhsl(83, 11%, 14%)
HSVhsv(83, 21%, 15%)
CMYKcmyk(7.7%, 0%, 20.5%, 84.7%)
CIE-LABlab(15.09, -3.23, 4.84)
CIE-LCHlch(15.09, 5.82, 123.74°)
OKLaboklab(26.68% -0.0085 0.0125)
OKLCHoklch(26.68% 0.015 124.2)
XYZxyz(1.7004, 1.9250, 1.5780)
Luminance0.0192 (WCAG relative)
Temperatureneutral
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24271F #221F27
analogous
#27261F #24271F #20271F
triadic
#24271F #1F2427 #271F24
tetradic
#24271F #1F2726 #221F27 #271F20
square
#24271F #1F2726 #221F27 #271F20
split-complementary
#24271F #1F2027 #261F27
monochromatic
#10110E #10110E #24271F #43493A #636B55

Accessibility & contrast

On white

15.16
#24271F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#24271F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24271F
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24271F#FFFFFF#000000##FFFFFF
##24271F1.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28261F
Deuteranopia (green-blind)
#28261F
Tritanopia (blue-blind)
#252625
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #24271f;
/* rgb */ color: rgb(36, 39, 31);
/* oklch */ color: oklch(26.7% 0.015 124.2);
Tailwind
colors: {
  custom: {
    50: '#5e615a',
    500: '#24271f',
    950: '#000000',
  },
}
SCSS
$custom: #24271f;
$custom-light: #5e615a;
$custom-dark: #000000;
JSON
{
  "hex": "#24271f",
  "rgb": {
    "r": 36,
    "g": 39,
    "b": 31
  },
  "hsl": {
    "h": 82.5,
    "s": 11.429,
    "l": 13.725
  },
  "oklch": {
    "l": 0.26684,
    "c": 0.01507,
    "h": 124.2
  },
  "luminance": 0.01925
}

Semantic roles & 50–950 ramp

primary
#24271F
secondary
#4F4A57
accent
#73B48C
background
#F5F5F5
surface
#E9E9E9
border
#C5C5C5
text
#040503
muted
#797978

Preview Lab

Preview with #24271F

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

Preview Lab → · Contrast checker → · Palette generator →

#24271F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva