#2F3002#2F3002

#2F3002 is a dark, moderate yellow. Relative luminance 0.027; OKLCH L 29.8% C 0.064 H 111.0°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#2F3002
RGBrgb(47, 48, 2)
HSLhsl(61, 92%, 10%)
HSVhsv(61, 96%, 19%)
CMYKcmyk(2.1%, 0%, 95.8%, 81.2%)
CIE-LABlab(18.90, -7.06, 25.93)
CIE-LCHlch(18.90, 26.88, 105.23°)
OKLaboklab(29.84% -0.0227 0.0593)
OKLCHoklch(29.84% 0.064 111)
XYZxyz(2.2403, 2.7227, 0.4649)
Luminance0.0272 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3002 #030230
analogous
#301A02 #2F3002 #183002
triadic
#2F3002 #022F30 #30022F
tetradic
#2F3002 #02301A #030230 #300218
square
#2F3002 #02301A #030230 #300218
split-complementary
#2F3002 #021830 #1A0230
monochromatic
#1D1D01 #1D1D01 #2F3002 #696B04 #A2A607

Accessibility & contrast

On white

13.60
#2F3002 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2F3002 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3002
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3002#FFFFFF#000000##FFFFFF
##2F30021.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#352D00
Deuteranopia (green-blind)
#352E05
Tritanopia (blue-blind)
#332C28
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f3002;
/* rgb */ color: rgb(47, 48, 2);
/* oklch */ color: oklch(29.8% 0.064 111.0);
Tailwind
colors: {
  custom: {
    50: '#696848',
    500: '#2f3002',
    950: '#000000',
  },
}
SCSS
$custom: #2f3002;
$custom-light: #696848;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3002",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 2
  },
  "hsl": {
    "h": 61.304,
    "s": 92,
    "l": 9.804
  },
  "oklch": {
    "l": 0.29842,
    "c": 0.06352,
    "h": 111
  },
  "luminance": 0.02723
}

Semantic roles & 50–950 ramp

primary
#2F3002
secondary
#1B1975
accent
#29FF2D
background
#F6F6F4
surface
#EBEBE6
border
#C6C6C2
text
#060600
muted
#7A7A77

Preview Lab

Preview with #2F3002

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

Preview Lab → · Contrast checker → · Palette generator →

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