#2A3002#2A3002

#2A3002 is a dark, moderate yellow. Relative luminance 0.026; OKLCH L 29.3% C 0.065 H 117.1°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#2A3002
RGBrgb(42, 48, 2)
HSLhsl(68, 92%, 10%)
HSVhsv(68, 96%, 19%)
CMYKcmyk(12.5%, 0%, 95.8%, 81.2%)
CIE-LABlab(18.41, -9.76, 25.24)
CIE-LCHlch(18.41, 27.06, 111.15°)
OKLaboklab(29.33% -0.0299 0.0583)
OKLCHoklch(29.33% 0.065 117.1)
XYZxyz(2.0228, 2.6106, 0.4547)
Luminance0.0261 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3002 #080230
analogous
#301F02 #2A3002 #133002
triadic
#2A3002 #022A30 #30022A
tetradic
#2A3002 #02301F #080230 #300213
square
#2A3002 #02301F #080230 #300213
split-complementary
#2A3002 #021330 #1F0230
monochromatic
#1A1D01 #1A1D01 #2A3002 #5D6B04 #91A607

Accessibility & contrast

On white

13.80
#2A3002 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2A3002 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3002
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3002#FFFFFF#000000##FFFFFF
##2A30021.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342D00
Deuteranopia (green-blind)
#342D05
Tritanopia (blue-blind)
#2D2D27
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a3002;
/* rgb */ color: rgb(42, 48, 2);
/* oklch */ color: oklch(29.3% 0.065 117.1);
Tailwind
colors: {
  custom: {
    50: '#656848',
    500: '#2a3002',
    950: '#000000',
  },
}
SCSS
$custom: #2a3002;
$custom-light: #656848;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3002",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 2
  },
  "hsl": {
    "h": 67.826,
    "s": 92,
    "l": 9.804
  },
  "oklch": {
    "l": 0.29332,
    "c": 0.06549,
    "h": 117.1
  },
  "luminance": 0.02611
}

Semantic roles & 50–950 ramp

primary
#2A3002
secondary
#251975
accent
#29FF45
background
#F6F6F4
surface
#EBEBE6
border
#C6C6C2
text
#060600
muted
#7A7A77

Preview Lab

Preview with #2A3002

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

Preview Lab → · Contrast checker → · Palette generator →

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