#166238#166238

#166238 is a dark, moderate green. Relative luminance 0.092; OKLCH L 44.0% C 0.100 H 154.1°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#166238
RGBrgb(22, 98, 56)
HSLhsl(147, 63%, 24%)
HSVhsv(147, 78%, 38%)
CMYKcmyk(77.6%, 0%, 42.9%, 61.6%)
CIE-LABlab(36.35, -33.29, 17.56)
CIE-LCHlch(36.35, 37.63, 152.19°)
OKLaboklab(43.99% -0.0898 0.0437)
OKLCHoklch(43.99% 0.1 154.1)
XYZxyz(5.4119, 9.1908, 5.2294)
Luminance0.0919 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#166238 #621640
analogous
#1A6216 #166238 #16625E
triadic
#166238 #381662 #623816
tetradic
#166238 #161A62 #621640 #625E16
square
#166238 #161A62 #621640 #625E16
split-complementary
#166238 #5E1662 #62161A
monochromatic
#06190E #0B301B #166238 #219455 #2CC671

Accessibility & contrast

On white

7.40
#166238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#166238 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #166238
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##166238#FFFFFF#000000##FFFFFF
##1662381.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625935
Deuteranopia (green-blind)
#59533B
Tritanopia (blue-blind)
#006158
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #166238;
/* rgb */ color: rgb(22, 98, 56);
/* oklch */ color: oklch(44.0% 0.100 154.1);
Tailwind
colors: {
  custom: {
    50: '#608f6f',
    500: '#166238',
    950: '#000000',
  },
}
SCSS
$custom: #166238;
$custom-light: #608f6f;
$custom-dark: #000000;
JSON
{
  "hex": "#166238",
  "rgb": {
    "r": 22,
    "g": 98,
    "b": 56
  },
  "hsl": {
    "h": 146.842,
    "s": 63.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.43993,
    "c": 0.09982,
    "h": 154.1
  },
  "luminance": 0.09191
}

Semantic roles & 50–950 ramp

primary
#166238
secondary
#993B6F
accent
#419DE6
background
#F6F8F6
surface
#EBF0EC
border
#C6CBC7
text
#050C07
muted
#7A7D7A

Preview Lab

Preview with #166238

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

Preview Lab → · Contrast checker → · Palette generator →

#166238 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva