#2F3104#2F3104

#2F3104 is a dark, moderate yellow. Relative luminance 0.028; OKLCH L 30.1% C 0.063 H 112.2°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#2F3104
RGBrgb(47, 49, 4)
HSLhsl(63, 85%, 10%)
HSVhsv(63, 92%, 19%)
CMYKcmyk(4.1%, 0%, 91.8%, 80.8%)
CIE-LABlab(19.27, -7.54, 25.54)
CIE-LCHlch(19.27, 26.63, 106.45°)
OKLaboklab(30.14% -0.0237 0.0581)
OKLCHoklch(30.14% 0.063 112.2)
XYZxyz(2.2926, 2.8098, 0.5364)
Luminance0.0281 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3104 #060431
analogous
#311C04 #2F3104 #183104
triadic
#2F3104 #042F31 #31042F
tetradic
#2F3104 #04311C #060431 #310418
square
#2F3104 #04311C #060431 #310418
split-complementary
#2F3104 #041831 #1C0431
monochromatic
#1B1C02 #1B1C02 #2F3104 #656A09 #9CA20D

Accessibility & contrast

On white

13.44
#2F3104 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2F3104 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3104
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3104#FFFFFF#000000##FFFFFF
##2F31041.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#362E00
Deuteranopia (green-blind)
#362F07
Tritanopia (blue-blind)
#332D29
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f3104;
/* rgb */ color: rgb(47, 49, 4);
/* oklch */ color: oklch(30.1% 0.063 112.2);
Tailwind
colors: {
  custom: {
    50: '#696849',
    500: '#2f3104',
    950: '#000000',
  },
}
SCSS
$custom: #2f3104;
$custom-light: #696849;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3104",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 4
  },
  "hsl": {
    "h": 62.667,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.30143,
    "c": 0.06279,
    "h": 112.2
  },
  "luminance": 0.0281
}

Semantic roles & 50–950 ramp

primary
#2F3104
secondary
#211D73
accent
#2DFB36
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#060601
muted
#7A7A77

Preview Lab

Preview with #2F3104

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

Preview Lab → · Contrast checker → · Palette generator →

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