#12152D#12152D

#12152D is a very dark, muted blue. Relative luminance 0.009; OKLCH L 20.7% C 0.048 H 276.1°. Best body text is #FFFFFF at 17.94:1 contrast (WCAG AA passes).

Color values

HEX#12152D
RGBrgb(18, 21, 45)
HSLhsl(233, 43%, 12%)
HSVhsv(233, 60%, 18%)
CMYKcmyk(60%, 53.3%, 0%, 82.4%)
CIE-LABlab(7.72, 7.01, -16.66)
CIE-LCHlch(7.72, 18.08, 292.81°)
OKLaboklab(20.71% 0.005 -0.0473)
OKLCHoklch(20.71% 0.048 276.1)
XYZxyz(0.9911, 0.8543, 2.5948)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12152D #2D2A12
analogous
#12232D #12152D #1C122D
triadic
#12152D #2D1215 #152D12
tetradic
#12152D #2D1223 #2D2A12 #122D1C
square
#12152D #2D1223 #2D2A12 #122D1C
split-complementary
#12152D #2D1C12 #232D12
monochromatic
#090A16 #090A16 #12152D #232959 #353E84

Accessibility & contrast

On white

17.94
#12152D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12152D
17.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12152D#FFFFFF#000000##FFFFFF
##12152D1.0017.941.1717.94
#FFFFFF17.941.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B182E
Deuteranopia (green-blind)
#09162C
Tritanopia (blue-blind)
#081A1E
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #12152d;
/* rgb */ color: rgb(18, 21, 45);
/* oklch */ color: oklch(20.7% 0.048 276.1);
Tailwind
colors: {
  custom: {
    50: '#525266',
    500: '#12152d',
    950: '#000000',
  },
}
SCSS
$custom: #12152d;
$custom-light: #525266;
$custom-dark: #000000;
JSON
{
  "hex": "#12152d",
  "rgb": {
    "r": 18,
    "g": 21,
    "b": 45
  },
  "hsl": {
    "h": 233.333,
    "s": 42.857,
    "l": 12.353
  },
  "oklch": {
    "l": 0.20708,
    "c": 0.04752,
    "h": 276.1
  },
  "luminance": 0.00854
}

Semantic roles & 50–950 ramp

primary
#12152D
secondary
#655F36
accent
#C555D3
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A

Preview Lab

Preview with #12152D

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

Preview Lab → · Contrast checker → · Palette generator →

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