#12142E#12142E

#12142E is a very dark, muted blue. Relative luminance 0.008; OKLCH L 20.5% C 0.051 H 277.6°. Best body text is #FFFFFF at 18.02:1 contrast (WCAG AA passes).

Color values

HEX#12142E
RGBrgb(18, 20, 46)
HSLhsl(236, 44%, 13%)
HSVhsv(236, 61%, 18%)
CMYKcmyk(60.9%, 56.5%, 0%, 82%)
CIE-LABlab(7.46, 8.16, -17.81)
CIE-LCHlch(7.46, 19.59, 294.62°)
OKLaboklab(20.53% 0.0067 -0.0507)
OKLCHoklch(20.53% 0.051 277.6)
XYZxyz(0.9926, 0.8261, 2.6914)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12142E #2E2C12
analogous
#12222E #12142E #1E122E
triadic
#12142E #2E1214 #142E12
tetradic
#12142E #2E1222 #2E2C12 #122E1E
square
#12142E #2E1222 #2E2C12 #122E1E
split-complementary
#12142E #2E1E12 #222E12
monochromatic
#090A16 #090A16 #12142E #23275A #343A86

Accessibility & contrast

On white

18.02
#12142E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#12142E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12142E
18.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12142E#FFFFFF#000000##FFFFFF
##12142E1.0018.021.1718.02
#FFFFFF18.021.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09182F
Deuteranopia (green-blind)
#07152D
Tritanopia (blue-blind)
#071A1E
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #12142e;
/* rgb */ color: rgb(18, 20, 46);
/* oklch */ color: oklch(20.5% 0.051 277.6);
Tailwind
colors: {
  custom: {
    50: '#525167',
    500: '#12142e',
    950: '#000000',
  },
}
SCSS
$custom: #12142e;
$custom-light: #525167;
$custom-dark: #000000;
JSON
{
  "hex": "#12142e",
  "rgb": {
    "r": 18,
    "g": 20,
    "b": 46
  },
  "hsl": {
    "h": 235.714,
    "s": 43.75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.20531,
    "c": 0.05112,
    "h": 277.6
  },
  "luminance": 0.00826
}

Semantic roles & 50–950 ramp

primary
#12142E
secondary
#666236
accent
#CA54D3
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A

Preview Lab

Preview with #12142E

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

Preview Lab → · Contrast checker → · Palette generator →

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