#12173D#12173D

#12173D is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.6% C 0.072 H 273.5°. Best body text is #FFFFFF at 17.28:1 contrast (WCAG AA passes).

Color values

HEX#12173D
RGBrgb(18, 23, 61)
HSLhsl(233, 54%, 15%)
HSVhsv(233, 70%, 24%)
CMYKcmyk(70.5%, 62.3%, 0%, 76.1%)
CIE-LABlab(9.63, 12.04, -25.21)
CIE-LCHlch(9.63, 27.94, 295.54°)
OKLaboklab(22.56% 0.0044 -0.0723)
OKLCHoklch(22.56% 0.072 273.5)
XYZxyz(1.3979, 1.0782, 4.5484)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12173D #3D3812
analogous
#122C3D #12173D #22123D
triadic
#12173D #3D1217 #173D12
tetradic
#12173D #3D122C #3D3812 #123D22
square
#12173D #3D122C #3D3812 #123D22
split-complementary
#12173D #3D2212 #2C3D12
monochromatic
#070918 #070918 #12173D #20296C #2E3B9C

Accessibility & contrast

On white

17.28
#12173D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#12173D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12173D
17.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12173D#FFFFFF#000000##FFFFFF
##12173D1.0017.281.2217.28
#FFFFFF17.281.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011D3E
Deuteranopia (green-blind)
#00193C
Tritanopia (blue-blind)
#002027
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #12173d;
/* rgb */ color: rgb(18, 23, 61);
/* oklch */ color: oklch(22.6% 0.072 273.5);
Tailwind
colors: {
  custom: {
    50: '#555373',
    500: '#12173d',
    950: '#000000',
  },
}
SCSS
$custom: #12173d;
$custom-light: #555373;
$custom-dark: #000000;
JSON
{
  "hex": "#12173d",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 61
  },
  "hsl": {
    "h": 233.023,
    "s": 54.43,
    "l": 15.49
  },
  "oklch": {
    "l": 0.22558,
    "c": 0.07247,
    "h": 273.5
  },
  "luminance": 0.01078
}

Semantic roles & 50–950 ramp

primary
#12173D
secondary
#766E35
accent
#CD4ADE
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #12173D

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

Preview Lab → · Contrast checker → · Palette generator →

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