#12142C#12142C

#12142C is a very dark, muted blue. Relative luminance 0.008; OKLCH L 20.4% C 0.047 H 277.7°. Best body text is #FFFFFF at 18.07:1 contrast (WCAG AA passes).

Color values

HEX#12142C
RGBrgb(18, 20, 44)
HSLhsl(235, 42%, 12%)
HSVhsv(235, 59%, 17%)
CMYKcmyk(59.1%, 54.5%, 0%, 82.7%)
CIE-LABlab(7.32, 7.33, -16.55)
CIE-LCHlch(7.32, 18.10, 293.89°)
OKLaboklab(20.37% 0.0064 -0.047)
OKLCHoklch(20.37% 0.047 277.7)
XYZxyz(0.9541, 0.8107, 2.4886)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12142C #2C2A12
analogous
#12212C #12142C #1D122C
triadic
#12142C #2C1214 #142C12
tetradic
#12142C #2C1221 #2C2A12 #122C1D
square
#12142C #2C1221 #2C2A12 #122C1D
split-complementary
#12142C #2C1D12 #212C12
monochromatic
#090A16 #090A16 #12142C #242857 #363B83

Accessibility & contrast

On white

18.07
#12142C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#12142C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12142C
18.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12142C#FFFFFF#000000##FFFFFF
##12142C1.0018.071.1618.07
#FFFFFF18.071.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A172D
Deuteranopia (green-blind)
#08152B
Tritanopia (blue-blind)
#08191D
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #12142c;
/* rgb */ color: rgb(18, 20, 44);
/* oklch */ color: oklch(20.4% 0.047 277.7);
Tailwind
colors: {
  custom: {
    50: '#525165',
    500: '#12142c',
    950: '#000000',
  },
}
SCSS
$custom: #12142c;
$custom-light: #525165;
$custom-dark: #000000;
JSON
{
  "hex": "#12142c",
  "rgb": {
    "r": 18,
    "g": 20,
    "b": 44
  },
  "hsl": {
    "h": 235.385,
    "s": 41.935,
    "l": 12.157
  },
  "oklch": {
    "l": 0.20372,
    "c": 0.04744,
    "h": 277.7
  },
  "luminance": 0.00811
}

Semantic roles & 50–950 ramp

primary
#12142C
secondary
#636036
accent
#C856D2
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020205
muted
#78787A

Preview Lab

Preview with #12142C

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

Preview Lab → · Contrast checker → · Palette generator →

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