#2F3102#2F3102

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

Color values

HEX#2F3102
RGBrgb(47, 49, 2)
HSLhsl(63, 92%, 10%)
HSVhsv(63, 96%, 19%)
CMYKcmyk(4.1%, 0%, 95.9%, 80.8%)
CIE-LABlab(19.25, -7.69, 26.34)
CIE-LCHlch(19.25, 27.44, 106.28°)
OKLaboklab(30.12% -0.0245 0.0599)
OKLCHoklch(30.12% 0.065 112.2)
XYZxyz(2.2816, 2.8054, 0.4787)
Luminance0.0280 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3102 #040231
analogous
#311B02 #2F3102 #183102
triadic
#2F3102 #022F31 #31022F
tetradic
#2F3102 #02311B #040231 #310218
square
#2F3102 #02311B #040231 #310218
split-complementary
#2F3102 #021831 #1B0231
monochromatic
#1C1D01 #1C1D01 #2F3102 #676C04 #A0A707

Accessibility & contrast

On white

13.45
#2F3102 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F3102
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3102#FFFFFF#000000##FFFFFF
##2F31021.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f3102;
/* rgb */ color: rgb(47, 49, 2);
/* oklch */ color: oklch(30.1% 0.065 112.2);
Tailwind
colors: {
  custom: {
    50: '#696848',
    500: '#2f3102',
    950: '#000000',
  },
}
SCSS
$custom: #2f3102;
$custom-light: #696848;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3102",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 2
  },
  "hsl": {
    "h": 62.553,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.30123,
    "c": 0.06474,
    "h": 112.2
  },
  "luminance": 0.02805
}

Semantic roles & 50–950 ramp

primary
#2F3102
secondary
#1D1975
accent
#29FF32
background
#F6F6F4
surface
#EBEBE6
border
#C6C6C2
text
#060600
muted
#7A7A77

Preview Lab

Preview with #2F3102

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

Preview Lab → · Contrast checker → · Palette generator →

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