#1F2829#1F2829

#1F2829 is a dark, near-neutral teal. Relative luminance 0.020; OKLCH L 26.9% C 0.013 H 204.7°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).

Color values

HEX#1F2829
RGBrgb(31, 40, 41)
HSLhsl(186, 14%, 14%)
HSVhsv(186, 24%, 16%)
CMYKcmyk(24.4%, 2.4%, 0%, 83.9%)
CIE-LABlab(15.32, -3.64, -1.97)
CIE-LCHlch(15.32, 4.14, 208.37°)
OKLaboklab(26.86% -0.0116 -0.0053)
OKLCHoklch(26.86% 0.013 204.7)
XYZxyz(1.7240, 1.9689, 2.3866)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2829 #29201F
analogous
#1F2925 #1F2829 #1F2329
triadic
#1F2829 #291F28 #28291F
tetradic
#1F2829 #251F29 #29201F #23291F
square
#1F2829 #251F29 #29201F #23291F
split-complementary
#1F2829 #291F23 #29251F
monochromatic
#0D1111 #0D1111 #1F2829 #394A4C #546C6F

Accessibility & contrast

On white

15.07
#1F2829 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#1F2829 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2829
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2829#FFFFFF#000000##FFFFFF
##1F28291.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#272729
Deuteranopia (green-blind)
#252629
Tritanopia (blue-blind)
#1C2928
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1f2829;
/* rgb */ color: rgb(31, 40, 41);
/* oklch */ color: oklch(26.9% 0.013 204.7);
Tailwind
colors: {
  custom: {
    50: '#5a6162',
    500: '#1f2829',
    950: '#000000',
  },
}
SCSS
$custom: #1f2829;
$custom-light: #5a6162;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2829",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 41
  },
  "hsl": {
    "h": 186,
    "s": 13.889,
    "l": 14.118
  },
  "oklch": {
    "l": 0.26864,
    "c": 0.01277,
    "h": 204.7
  },
  "luminance": 0.01969
}

Semantic roles & 50–950 ramp

primary
#1F2829
secondary
#5A4C4A
accent
#7871B7
background
#F5F5F5
surface
#E9E9EA
border
#C5C5C6
text
#040505
muted
#797979

Preview Lab

Preview with #1F2829

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

Preview Lab → · Contrast checker → · Palette generator →

#1F2829 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva