#0F5842#0F5842

#0F5842 is a dark, moderate teal. Relative luminance 0.075; OKLCH L 41.2% C 0.078 H 167.3°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#0F5842
RGBrgb(15, 88, 66)
HSLhsl(162, 71%, 20%)
HSVhsv(162, 83%, 35%)
CMYKcmyk(83%, 0%, 25%, 65.5%)
CIE-LABlab(32.86, -27.49, 6.69)
CIE-LCHlch(32.86, 28.29, 166.33°)
OKLaboklab(41.16% -0.076 0.0171)
OKLCHoklch(41.16% 0.078 167.3)
XYZxyz(4.6695, 7.4738, 6.3497)
Luminance0.0747 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5842 #580F25
analogous
#0F581E #0F5842 #0F4958
triadic
#0F5842 #420F58 #58420F
tetradic
#0F5842 #1E0F58 #580F25 #49580F
square
#0F5842 #1E0F58 #580F25 #49580F
split-complementary
#0F5842 #580F49 #581E0F
monochromatic
#041A14 #06241B #0F5842 #188C69 #21C190

Accessibility & contrast

On white

8.42
#0F5842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#0F5842 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F5842
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5842#FFFFFF#000000##FFFFFF
##0F58421.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#565141
Deuteranopia (green-blind)
#4D4B43
Tritanopia (blue-blind)
#005852
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #0f5842;
/* rgb */ color: rgb(15, 88, 66);
/* oklch */ color: oklch(41.2% 0.078 167.3);
Tailwind
colors: {
  custom: {
    50: '#5b8876',
    500: '#0f5842',
    950: '#000000',
  },
}
SCSS
$custom: #0f5842;
$custom-light: #5b8876;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5842",
  "rgb": {
    "r": 15,
    "g": 88,
    "b": 66
  },
  "hsl": {
    "h": 161.918,
    "s": 70.874,
    "l": 20.196
  },
  "oklch": {
    "l": 0.41155,
    "c": 0.07794,
    "h": 167.3
  },
  "luminance": 0.07474
}

Semantic roles & 50–950 ramp

primary
#0F5842
secondary
#92314E
accent
#3A70EE
background
#F5F8F7
surface
#E9F0ED
border
#C5CBC8
text
#040B08
muted
#797C7B

Preview Lab

Preview with #0F5842

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

Preview Lab → · Contrast checker → · Palette generator →

#0F5842 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva