#2A2F02#2A2F02

#2A2F02 is a dark, moderate yellow. Relative luminance 0.025; OKLCH L 29.0% C 0.064 H 116.1°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#2A2F02
RGBrgb(42, 47, 2)
HSLhsl(67, 92%, 10%)
HSVhsv(67, 96%, 18%)
CMYKcmyk(10.6%, 0%, 95.7%, 81.6%)
CIE-LABlab(18.05, -9.15, 24.81)
CIE-LCHlch(18.05, 26.44, 110.23°)
OKLaboklab(29.04% -0.0282 0.0576)
OKLCHoklch(29.04% 0.064 116.1)
XYZxyz(1.9824, 2.5297, 0.4413)
Luminance0.0253 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F02 #07022F
analogous
#2F1E02 #2A2F02 #142F02
triadic
#2A2F02 #022A2F #2F022A
tetradic
#2A2F02 #022F1E #07022F #2F0214
square
#2A2F02 #022F1E #07022F #2F0214
split-complementary
#2A2F02 #02142F #1E022F
monochromatic
#1A1D01 #1A1D01 #2A2F02 #5E6A04 #93A407

Accessibility & contrast

On white

13.94
#2A2F02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2A2F02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F02
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F02#FFFFFF#000000##FFFFFF
##2A2F021.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#332C00
Deuteranopia (green-blind)
#332C05
Tritanopia (blue-blind)
#2E2C27
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a2f02;
/* rgb */ color: rgb(42, 47, 2);
/* oklch */ color: oklch(29.0% 0.064 116.1);
Tailwind
colors: {
  custom: {
    50: '#656748',
    500: '#2a2f02',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f02;
$custom-light: #656748;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f02",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 2
  },
  "hsl": {
    "h": 66.667,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.29044,
    "c": 0.06415,
    "h": 116.1
  },
  "luminance": 0.0253
}

Semantic roles & 50–950 ramp

primary
#2A2F02
secondary
#231974
accent
#29FF41
background
#F6F6F4
surface
#EBEBE6
border
#C6C6C2
text
#060600
muted
#7A7A77

Preview Lab

Preview with #2A2F02

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

Preview Lab → · Contrast checker → · Palette generator →

#2A2F02 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva