#12173C#12173C

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

Color values

HEX#12173C
RGBrgb(18, 23, 60)
HSLhsl(233, 54%, 15%)
HSVhsv(233, 70%, 24%)
CMYKcmyk(70%, 61.7%, 0%, 76.5%)
CIE-LABlab(9.54, 11.63, -24.64)
CIE-LCHlch(9.54, 27.24, 295.26°)
OKLaboklab(22.47% 0.0043 -0.0706)
OKLCHoklch(22.47% 0.071 273.5)
XYZxyz(1.3712, 1.0675, 4.4079)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12173C #3C3712
analogous
#122C3C #12173C #22123C
triadic
#12173C #3C1217 #173C12
tetradic
#12173C #3C122C #3C3712 #123C22
square
#12173C #3C122C #3C3712 #123C22
split-complementary
#12173C #3C2212 #2C3C12
monochromatic
#070918 #070918 #12173C #20296B #2E3B9A

Accessibility & contrast

On white

17.30
#12173C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12173C
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12173C#FFFFFF#000000##FFFFFF
##12173C1.0017.301.2117.30
#FFFFFF17.301.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021C3D
Deuteranopia (green-blind)
#00193B
Tritanopia (blue-blind)
#002026
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #12173c;
/* rgb */ color: rgb(18, 23, 60);
/* oklch */ color: oklch(22.5% 0.071 273.5);
Tailwind
colors: {
  custom: {
    50: '#555372',
    500: '#12173c',
    950: '#000000',
  },
}
SCSS
$custom: #12173c;
$custom-light: #555372;
$custom-dark: #000000;
JSON
{
  "hex": "#12173c",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 60
  },
  "hsl": {
    "h": 232.857,
    "s": 53.846,
    "l": 15.294
  },
  "oklch": {
    "l": 0.22468,
    "c": 0.07078,
    "h": 273.5
  },
  "luminance": 0.01068
}

Semantic roles & 50–950 ramp

primary
#12173C
secondary
#756D35
accent
#CC4BDD
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030208
muted
#78787B

Preview Lab

Preview with #12173C

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

Preview Lab → · Contrast checker → · Palette generator →

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