#2F3004#2F3004

#2F3004 is a dark, moderate yellow. Relative luminance 0.027; OKLCH L 29.9% C 0.062 H 110.9°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#2F3004
RGBrgb(47, 48, 4)
HSLhsl(61, 85%, 10%)
HSVhsv(61, 92%, 19%)
CMYKcmyk(2.1%, 0%, 91.7%, 81.2%)
CIE-LABlab(18.92, -6.91, 25.14)
CIE-LCHlch(18.92, 26.07, 105.37°)
OKLaboklab(29.86% -0.022 0.0575)
OKLCHoklch(29.86% 0.062 110.9)
XYZxyz(2.2512, 2.7271, 0.5226)
Luminance0.0273 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3004 #050430
analogous
#301B04 #2F3004 #193004
triadic
#2F3004 #042F30 #30042F
tetradic
#2F3004 #04301B #050430 #300419
square
#2F3004 #04301B #050430 #300419
split-complementary
#2F3004 #041930 #1B0430
monochromatic
#1C1C02 #1C1C02 #2F3004 #666809 #9EA10D

Accessibility & contrast

On white

13.59
#2F3004 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2F3004 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3004
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3004#FFFFFF#000000##FFFFFF
##2F30041.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f3004;
/* rgb */ color: rgb(47, 48, 4);
/* oklch */ color: oklch(29.9% 0.062 110.9);
Tailwind
colors: {
  custom: {
    50: '#696849',
    500: '#2f3004',
    950: '#000000',
  },
}
SCSS
$custom: #2f3004;
$custom-light: #696849;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3004",
  "rgb": {
    "r": 47,
    "g": 48,
    "b": 4
  },
  "hsl": {
    "h": 61.364,
    "s": 84.615,
    "l": 10.196
  },
  "oklch": {
    "l": 0.29863,
    "c": 0.06153,
    "h": 110.9
  },
  "luminance": 0.02727
}

Semantic roles & 50–950 ramp

primary
#2F3004
secondary
#1F1D72
accent
#2DFB32
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#060601
muted
#7A7A77

Preview Lab

Preview with #2F3004

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

Preview Lab → · Contrast checker → · Palette generator →

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