#12402A#12402A

#12402A is a dark, moderate teal. Relative luminance 0.040; OKLCH L 33.3% C 0.064 H 159.0°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#12402A
RGBrgb(18, 64, 42)
HSLhsl(151, 56%, 16%)
HSVhsv(151, 72%, 25%)
CMYKcmyk(71.9%, 0%, 34.4%, 74.9%)
CIE-LABlab(23.55, -21.75, 8.99)
CIE-LCHlch(23.55, 23.54, 157.55°)
OKLaboklab(33.34% -0.0593 0.0228)
OKLCHoklch(33.34% 0.064 159)
XYZxyz(2.5005, 3.9623, 2.8231)
Luminance0.0396 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12402A #401228
analogous
#124013 #12402A #123F40
triadic
#12402A #2A1240 #402A12
tetradic
#12402A #131240 #401228 #3F4012
square
#12402A #131240 #401228 #3F4012
split-complementary
#12402A #40123F #401312
monochromatic
#071810 #071810 #12402A #1F7049 #2DA069

Accessibility & contrast

On white

11.71
#12402A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#12402A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12402A
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12402A#FFFFFF#000000##FFFFFF
##12402A1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F3B29
Deuteranopia (green-blind)
#39362B
Tritanopia (blue-blind)
#00403A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #12402a;
/* rgb */ color: rgb(18, 64, 42);
/* oklch */ color: oklch(33.3% 0.064 159.0);
Tailwind
colors: {
  custom: {
    50: '#567563',
    500: '#12402a',
    950: '#000000',
  },
}
SCSS
$custom: #12402a;
$custom-light: #567563;
$custom-dark: #000000;
JSON
{
  "hex": "#12402a",
  "rgb": {
    "r": 18,
    "g": 64,
    "b": 42
  },
  "hsl": {
    "h": 151.304,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.33335,
    "c": 0.06356,
    "h": 159
  },
  "luminance": 0.03963
}

Semantic roles & 50–950 ramp

primary
#12402A
secondary
#793555
accent
#4891DF
background
#F5F7F5
surface
#E9EDEA
border
#C5C8C6
text
#030805
muted
#787B79

Preview Lab

Preview with #12402A

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

Preview Lab → · Contrast checker → · Palette generator →

#12402A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva