#12152F#12152F

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

Color values

HEX#12152F
RGBrgb(18, 21, 47)
HSLhsl(234, 45%, 13%)
HSVhsv(234, 62%, 18%)
CMYKcmyk(61.7%, 55.3%, 0%, 81.6%)
CIE-LABlab(7.86, 7.82, -17.91)
CIE-LCHlch(7.86, 19.55, 293.59°)
OKLaboklab(20.87% 0.0054 -0.0509)
OKLCHoklch(20.87% 0.051 276.1)
XYZxyz(1.0305, 0.8701, 2.8024)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12152F #2F2C12
analogous
#12232F #12152F #1D122F
triadic
#12152F #2F1215 #152F12
tetradic
#12152F #2F1223 #2F2C12 #122F1D
square
#12152F #2F1223 #2F2C12 #122F1D
split-complementary
#12152F #2F1D12 #232F12
monochromatic
#080A16 #080A16 #12152F #23295B #343D88

Accessibility & contrast

On white

17.89
#12152F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12152F
17.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12152F#FFFFFF#000000##FFFFFF
##12152F1.0017.891.1717.89
#FFFFFF17.891.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1830
Deuteranopia (green-blind)
#07162E
Tritanopia (blue-blind)
#061B1F
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #12152f;
/* rgb */ color: rgb(18, 21, 47);
/* oklch */ color: oklch(20.9% 0.051 276.1);
Tailwind
colors: {
  custom: {
    50: '#525267',
    500: '#12152f',
    950: '#000000',
  },
}
SCSS
$custom: #12152f;
$custom-light: #525267;
$custom-dark: #000000;
JSON
{
  "hex": "#12152f",
  "rgb": {
    "r": 18,
    "g": 21,
    "b": 47
  },
  "hsl": {
    "h": 233.793,
    "s": 44.615,
    "l": 12.745
  },
  "oklch": {
    "l": 0.20866,
    "c": 0.0512,
    "h": 276.1
  },
  "luminance": 0.0087
}

Semantic roles & 50–950 ramp

primary
#12152F
secondary
#676236
accent
#C753D4
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A

Preview Lab

Preview with #12152F

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

Preview Lab → · Contrast checker → · Palette generator →

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