#12152E#12152E

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

Color values

HEX#12152E
RGBrgb(18, 21, 46)
HSLhsl(234, 44%, 13%)
HSVhsv(234, 61%, 18%)
CMYKcmyk(60.9%, 54.3%, 0%, 82%)
CIE-LABlab(7.79, 7.42, -17.29)
CIE-LCHlch(7.79, 18.81, 293.21°)
OKLaboklab(20.79% 0.0052 -0.0491)
OKLCHoklch(20.79% 0.049 276.1)
XYZxyz(1.0106, 0.8621, 2.6974)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12152E #2E2B12
analogous
#12232E #12152E #1D122E
triadic
#12152E #2E1215 #152E12
tetradic
#12152E #2E1223 #2E2B12 #122E1D
square
#12152E #2E1223 #2E2B12 #122E1D
split-complementary
#12152E #2E1D12 #232E12
monochromatic
#090A16 #090A16 #12152E #23295A #343D86

Accessibility & contrast

On white

17.91
#12152E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12152E
17.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12152E#FFFFFF#000000##FFFFFF
##12152E1.0017.911.1717.91
#FFFFFF17.911.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B182F
Deuteranopia (green-blind)
#08162D
Tritanopia (blue-blind)
#071A1F
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #12152e;
/* rgb */ color: rgb(18, 21, 46);
/* oklch */ color: oklch(20.8% 0.049 276.1);
Tailwind
colors: {
  custom: {
    50: '#525267',
    500: '#12152e',
    950: '#000000',
  },
}
SCSS
$custom: #12152e;
$custom-light: #525267;
$custom-dark: #000000;
JSON
{
  "hex": "#12152e",
  "rgb": {
    "r": 18,
    "g": 21,
    "b": 46
  },
  "hsl": {
    "h": 233.571,
    "s": 43.75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.20787,
    "c": 0.04937,
    "h": 276.1
  },
  "luminance": 0.00862
}

Semantic roles & 50–950 ramp

primary
#12152E
secondary
#666136
accent
#C654D3
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A

Preview Lab

Preview with #12152E

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

Preview Lab → · Contrast checker → · Palette generator →

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