#12173E#12173E

#12173E is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.7% C 0.074 H 273.4°. Best body text is #FFFFFF at 17.24:1 contrast (WCAG AA passes).

Color values

HEX#12173E
RGBrgb(18, 23, 62)
HSLhsl(233, 55%, 16%)
HSVhsv(233, 71%, 24%)
CMYKcmyk(71%, 62.9%, 0%, 75.7%)
CIE-LABlab(9.71, 12.46, -25.78)
CIE-LCHlch(9.71, 28.64, 295.80°)
OKLaboklab(22.65% 0.0045 -0.074)
OKLCHoklch(22.65% 0.074 273.4)
XYZxyz(1.4251, 1.0891, 4.6916)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12173E #3E3912
analogous
#122D3E #12173E #23123E
triadic
#12173E #3E1217 #173E12
tetradic
#12173E #3E122D #3E3912 #123E23
square
#12173E #3E122D #3E3912 #123E23
split-complementary
#12173E #3E2312 #2D3E12
monochromatic
#070918 #070918 #12173E #20296D #2E3A9D

Accessibility & contrast

On white

17.24
#12173E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12173E
17.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12173E#FFFFFF#000000##FFFFFF
##12173E1.0017.241.2217.24
#FFFFFF17.241.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D3F
Deuteranopia (green-blind)
#00193D
Tritanopia (blue-blind)
#002027
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #12173e;
/* rgb */ color: rgb(18, 23, 62);
/* oklch */ color: oklch(22.7% 0.074 273.4);
Tailwind
colors: {
  custom: {
    50: '#565374',
    500: '#12173e',
    950: '#000000',
  },
}
SCSS
$custom: #12173e;
$custom-light: #565374;
$custom-dark: #000000;
JSON
{
  "hex": "#12173e",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 62
  },
  "hsl": {
    "h": 233.182,
    "s": 55,
    "l": 15.686
  },
  "oklch": {
    "l": 0.2265,
    "c": 0.07416,
    "h": 273.4
  },
  "luminance": 0.01089
}

Semantic roles & 50–950 ramp

primary
#12173E
secondary
#776F35
accent
#CD49DE
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #12173E

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

Preview Lab → · Contrast checker → · Palette generator →

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