#12271E#12271E

#12271E is a dark, muted teal. Relative luminance 0.017; OKLCH L 25.2% C 0.032 H 164.6°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#12271E
RGBrgb(18, 39, 30)
HSLhsl(154, 37%, 11%)
HSVhsv(154, 54%, 15%)
CMYKcmyk(53.8%, 0%, 23.1%, 84.7%)
CIE-LABlab(13.67, -11.16, 3.35)
CIE-LCHlch(13.67, 11.65, 163.32°)
OKLaboklab(25.18% -0.0312 0.0086)
OKLCHoklch(25.18% 0.032 164.6)
XYZxyz(1.2092, 1.6733, 1.4873)
Luminance0.0167 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12271E #27121B
analogous
#122713 #12271E #122527
triadic
#12271E #1E1227 #271E12
tetradic
#12271E #131227 #27121B #252712
square
#12271E #131227 #27121B #252712
split-complementary
#12271E #271225 #271312
monochromatic
#0A1510 #0A1510 #12271E #25513E #397B5E

Accessibility & contrast

On white

15.74
#12271E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#12271E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12271E
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12271E#FFFFFF#000000##FFFFFF
##12271E1.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26241E
Deuteranopia (green-blind)
#23221F
Tritanopia (blue-blind)
#0C2724
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #12271e;
/* rgb */ color: rgb(18, 39, 30);
/* oklch */ color: oklch(25.2% 0.032 164.6);
Tailwind
colors: {
  custom: {
    50: '#516159',
    500: '#12271e',
    950: '#000000',
  },
}
SCSS
$custom: #12271e;
$custom-light: #516159;
$custom-dark: #000000;
JSON
{
  "hex": "#12271e",
  "rgb": {
    "r": 18,
    "g": 39,
    "b": 30
  },
  "hsl": {
    "h": 154.286,
    "s": 36.842,
    "l": 11.176
  },
  "oklch": {
    "l": 0.25177,
    "c": 0.03236,
    "h": 164.6
  },
  "luminance": 0.01673
}

Semantic roles & 50–950 ramp

primary
#12271E
secondary
#5E3748
accent
#5B8CCD
background
#F4F5F5
surface
#E7E9E9
border
#C3C5C5
text
#020503
muted
#787978

Preview Lab

Preview with #12271E

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

Preview Lab → · Contrast checker → · Palette generator →

#12271E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva