#12173A#12173A

#12173A is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.3% C 0.067 H 273.5°. Best body text is #FFFFFF at 17.36:1 contrast (WCAG AA passes).

Color values

HEX#12173A
RGBrgb(18, 23, 58)
HSLhsl(233, 53%, 15%)
HSVhsv(233, 69%, 23%)
CMYKcmyk(69%, 60.3%, 0%, 77.3%)
CIE-LABlab(9.38, 10.79, -23.47)
CIE-LCHlch(9.38, 25.83, 294.68°)
OKLaboklab(22.29% 0.0042 -0.0672)
OKLCHoklch(22.29% 0.067 273.5)
XYZxyz(1.3193, 1.0468, 4.1347)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12173A #3A3512
analogous
#122B3A #12173A #21123A
triadic
#12173A #3A1217 #173A12
tetradic
#12173A #3A122B #3A3512 #123A21
square
#12173A #3A122B #3A3512 #123A21
split-complementary
#12173A #3A2112 #2B3A12
monochromatic
#070917 #070917 #12173A #202A69 #2F3C97

Accessibility & contrast

On white

17.36
#12173A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#12173A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12173A
17.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12173A#FFFFFF#000000##FFFFFF
##12173A1.0017.361.2117.36
#FFFFFF17.361.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041C3B
Deuteranopia (green-blind)
#001939
Tritanopia (blue-blind)
#001F25
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #12173a;
/* rgb */ color: rgb(18, 23, 58);
/* oklch */ color: oklch(22.3% 0.067 273.5);
Tailwind
colors: {
  custom: {
    50: '#555370',
    500: '#12173a',
    950: '#000000',
  },
}
SCSS
$custom: #12173a;
$custom-light: #555370;
$custom-dark: #000000;
JSON
{
  "hex": "#12173a",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 58
  },
  "hsl": {
    "h": 232.5,
    "s": 52.632,
    "l": 14.902
  },
  "oklch": {
    "l": 0.22289,
    "c": 0.06736,
    "h": 273.5
  },
  "luminance": 0.01047
}

Semantic roles & 50–950 ramp

primary
#12173A
secondary
#736B35
accent
#CA4CDC
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030207
muted
#78787A

Preview Lab

Preview with #12173A

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

Preview Lab → · Contrast checker → · Palette generator →

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