#2F270C#2F270C

#2F270C is a dark, muted yellow. Relative luminance 0.021; OKLCH L 27.5% C 0.043 H 92.8°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#2F270C
RGBrgb(47, 39, 12)
HSLhsl(46, 59%, 12%)
HSVhsv(46, 74%, 18%)
CMYKcmyk(0%, 17%, 74.5%, 81.6%)
CIE-LABlab(15.91, -0.34, 18.19)
CIE-LCHlch(15.91, 18.19, 91.07°)
OKLaboklab(27.5% -0.0021 0.0433)
OKLCHoklch(27.5% 0.043 92.8)
XYZxyz(1.9643, 2.0820, 0.6462)
Luminance0.0208 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F270C #0C142F
analogous
#2F160C #2F270C #262F0C
triadic
#2F270C #0C2F27 #270C2F
tetradic
#2F270C #0C2F16 #0C142F #2F0C26
square
#2F270C #0C2F16 #0C142F #2F0C26
split-complementary
#2F270C #0C262F #160C2F
monochromatic
#181406 #181406 #2F270C #604F18 #917825

Accessibility & contrast

On white

14.83
#2F270C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2F270C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F270C
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F270C#FFFFFF#000000##FFFFFF
##2F270C1.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2609
Deuteranopia (green-blind)
#2E290D
Tritanopia (blue-blind)
#332321
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f270c;
/* rgb */ color: rgb(47, 39, 12);
/* oklch */ color: oklch(27.5% 0.043 92.8);
Tailwind
colors: {
  custom: {
    50: '#69604c',
    500: '#2f270c',
    950: '#000000',
  },
}
SCSS
$custom: #2f270c;
$custom-light: #69604c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f270c",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 12
  },
  "hsl": {
    "h": 46.286,
    "s": 59.322,
    "l": 11.569
  },
  "oklch": {
    "l": 0.27501,
    "c": 0.04336,
    "h": 92.8
  },
  "luminance": 0.02082
}

Semantic roles & 50–950 ramp

primary
#2F270C
secondary
#2C3A6B
accent
#69E345
background
#F6F5F4
surface
#EBE9E7
border
#C6C5C3
text
#060501
muted
#7A7977

Preview Lab

Preview with #2F270C

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

Preview Lab → · Contrast checker → · Palette generator →

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