#281F02#281F02

#281F02 is a very dark, muted yellow. Relative luminance 0.014; OKLCH L 24.3% C 0.047 H 92.0°. Best body text is #FFFFFF at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#281F02
RGBrgb(40, 31, 2)
HSLhsl(46, 90%, 8%)
HSVhsv(46, 95%, 16%)
CMYKcmyk(0%, 22.5%, 95%, 84.3%)
CIE-LABlab(12.19, 0.34, 17.27)
CIE-LCHlch(12.19, 17.28, 88.86°)
OKLaboklab(24.32% -0.0016 0.0468)
OKLCHoklch(24.32% 0.047 92)
XYZxyz(1.3761, 1.4356, 0.2620)
Luminance0.0143 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F02 #020B28
analogous
#280C02 #281F02 #1E2802
triadic
#281F02 #02281F #1F0228
tetradic
#281F02 #02280C #020B28 #28021E
square
#281F02 #02280C #020B28 #28021E
split-complementary
#281F02 #021E28 #0C0228
monochromatic
#1D1701 #1D1701 #281F02 #624C05 #9D7908

Accessibility & contrast

On white

16.32
#281F02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#281F02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F02
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F02#FFFFFF#000000##FFFFFF
##281F021.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#241E00
Deuteranopia (green-blind)
#262103
Tritanopia (blue-blind)
#2C1B19
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #281f02;
/* rgb */ color: rgb(40, 31, 2);
/* oklch */ color: oklch(24.3% 0.047 92.0);
Tailwind
colors: {
  custom: {
    50: '#635a47',
    500: '#281f02',
    950: '#000000',
  },
}
SCSS
$custom: #281f02;
$custom-light: #635a47;
$custom-dark: #000000;
JSON
{
  "hex": "#281f02",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 2
  },
  "hsl": {
    "h": 45.789,
    "s": 90.476,
    "l": 8.235
  },
  "oklch": {
    "l": 0.24319,
    "c": 0.04684,
    "h": 92
  },
  "luminance": 0.01435
}

Semantic roles & 50–950 ramp

primary
#281F02
secondary
#192D6D
accent
#5CFF29
background
#F6F5F4
surface
#EBE9E6
border
#C6C5C2
text
#050300
muted
#7A7877

Preview Lab

Preview with #281F02

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

Preview Lab → · Contrast checker → · Palette generator →

#281F02 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva