#12152A#12152A

#12152A is a very dark, muted blue. Relative luminance 0.008; OKLCH L 20.5% C 0.042 H 275.9°. Best body text is #FFFFFF at 18.00:1 contrast (WCAG AA passes).

Color values

HEX#12152A
RGBrgb(18, 21, 42)
HSLhsl(233, 40%, 12%)
HSVhsv(233, 57%, 16%)
CMYKcmyk(57.1%, 50%, 0%, 83.5%)
CIE-LABlab(7.52, 5.79, -14.75)
CIE-LCHlch(7.52, 15.85, 291.43°)
OKLaboklab(20.48% 0.0043 -0.0417)
OKLCHoklch(20.48% 0.042 275.9)
XYZxyz(0.9354, 0.8320, 2.3014)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12152A #2A2712
analogous
#12212A #12152A #1B122A
triadic
#12152A #2A1215 #152A12
tetradic
#12152A #2A1221 #2A2712 #122A1B
square
#12152A #2A1221 #2A2712 #122A1B
split-complementary
#12152A #2A1B12 #212A12
monochromatic
#090B15 #090B15 #12152A #242A55 #374080

Accessibility & contrast

On white

18.00
#12152A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#12152A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12152A
18.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12152A#FFFFFF#000000##FFFFFF
##12152A1.0018.001.1718.00
#FFFFFF18.001.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D182B
Deuteranopia (green-blind)
#0B162A
Tritanopia (blue-blind)
#09191D
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #12152a;
/* rgb */ color: rgb(18, 21, 42);
/* oklch */ color: oklch(20.5% 0.042 275.9);
Tailwind
colors: {
  custom: {
    50: '#515263',
    500: '#12152a',
    950: '#000000',
  },
}
SCSS
$custom: #12152a;
$custom-light: #515263;
$custom-dark: #000000;
JSON
{
  "hex": "#12152a",
  "rgb": {
    "r": 18,
    "g": 21,
    "b": 42
  },
  "hsl": {
    "h": 232.5,
    "s": 40,
    "l": 11.765
  },
  "oklch": {
    "l": 0.20482,
    "c": 0.04193,
    "h": 275.9
  },
  "luminance": 0.00832
}

Semantic roles & 50–950 ramp

primary
#12152A
secondary
#615C37
accent
#C158D0
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#020205
muted
#787879

Preview Lab

Preview with #12152A

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

Preview Lab → · Contrast checker → · Palette generator →

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