#12172F#12172F

#12172F is a very dark, muted blue. Relative luminance 0.009; OKLCH L 21.4% C 0.048 H 272.9°. Best body text is #FFFFFF at 17.66:1 contrast (WCAG AA passes).

Color values

HEX#12172F
RGBrgb(18, 23, 47)
HSLhsl(230, 45%, 13%)
HSVhsv(230, 62%, 18%)
CMYKcmyk(61.7%, 51.1%, 0%, 81.6%)
CIE-LABlab(8.54, 6.25, -16.83)
CIE-LCHlch(8.54, 17.95, 290.37°)
OKLaboklab(21.38% 0.0024 -0.0477)
OKLCHoklch(21.38% 0.048 272.9)
XYZxyz(1.0688, 0.9466, 2.8152)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12172F #2F2A12
analogous
#12252F #12172F #1B122F
triadic
#12172F #2F1217 #172F12
tetradic
#12172F #2F1225 #2F2A12 #122F1B
square
#12172F #2F1225 #2F2A12 #122F1B
split-complementary
#12172F #2F1B12 #252F12
monochromatic
#080B16 #080B16 #12172F #232D5B #344288

Accessibility & contrast

On white

17.66
#12172F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#12172F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12172F
17.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12172F#FFFFFF#000000##FFFFFF
##12172F1.0017.661.1917.66
#FFFFFF17.661.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1A30
Deuteranopia (green-blind)
#0A172E
Tritanopia (blue-blind)
#061C20
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #12172f;
/* rgb */ color: rgb(18, 23, 47);
/* oklch */ color: oklch(21.4% 0.048 272.9);
Tailwind
colors: {
  custom: {
    50: '#525367',
    500: '#12172f',
    950: '#000000',
  },
}
SCSS
$custom: #12172f;
$custom-light: #525367;
$custom-dark: #000000;
JSON
{
  "hex": "#12172f",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 47
  },
  "hsl": {
    "h": 229.655,
    "s": 44.615,
    "l": 12.745
  },
  "oklch": {
    "l": 0.21384,
    "c": 0.04778,
    "h": 272.9
  },
  "luminance": 0.00947
}

Semantic roles & 50–950 ramp

primary
#12172F
secondary
#675E36
accent
#BE53D4
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A

Preview Lab

Preview with #12172F

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

Preview Lab → · Contrast checker → · Palette generator →

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