#0F5040#0F5040

#0F5040 is a dark, moderate teal. Relative luminance 0.062; OKLCH L 38.7% C 0.069 H 172.0°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#0F5040
RGBrgb(15, 80, 64)
HSLhsl(165, 68%, 19%)
HSVhsv(165, 81%, 31%)
CMYKcmyk(81.3%, 0%, 20%, 68.6%)
CIE-LABlab(29.93, -24.20, 3.78)
CIE-LCHlch(29.93, 24.50, 171.12°)
OKLaboklab(38.74% -0.068 0.0096)
OKLCHoklch(38.74% 0.069 172)
XYZxyz(3.9906, 6.2086, 5.8375)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5040 #500F1F
analogous
#0F501F #0F5040 #0F3F50
triadic
#0F5040 #400F50 #50400F
tetradic
#0F5040 #1F0F50 #500F1F #3F500F
square
#0F5040 #1F0F50 #500F1F #3F500F
split-complementary
#0F5040 #500F3F #501F0F
monochromatic
#051A15 #051C17 #0F5040 #198469 #22B792

Accessibility & contrast

On white

9.37
#0F5040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#0F5040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F5040
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5040#FFFFFF#000000##FFFFFF
##0F50401.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4A3F
Deuteranopia (green-blind)
#454441
Tritanopia (blue-blind)
#00514B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0f5040;
/* rgb */ color: rgb(15, 80, 64);
/* oklch */ color: oklch(38.7% 0.069 172.0);
Tailwind
colors: {
  custom: {
    50: '#598174',
    500: '#0f5040',
    950: '#000000',
  },
}
SCSS
$custom: #0f5040;
$custom-light: #598174;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5040",
  "rgb": {
    "r": 15,
    "g": 80,
    "b": 64
  },
  "hsl": {
    "h": 165.231,
    "s": 68.421,
    "l": 18.627
  },
  "oklch": {
    "l": 0.38736,
    "c": 0.06864,
    "h": 172
  },
  "luminance": 0.06209
}

Semantic roles & 50–950 ramp

primary
#0F5040
secondary
#8A3147
accent
#3D68EB
background
#F5F7F7
surface
#E9EEED
border
#C5C9C8
text
#040A08
muted
#797C7B

Preview Lab

Preview with #0F5040

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

Preview Lab → · Contrast checker → · Palette generator →

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