#12173B#12173B

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

Color values

HEX#12173B
RGBrgb(18, 23, 59)
HSLhsl(233, 53%, 15%)
HSVhsv(233, 69%, 23%)
CMYKcmyk(69.5%, 61%, 0%, 76.9%)
CIE-LABlab(9.46, 11.20, -24.06)
CIE-LCHlch(9.46, 26.54, 294.97°)
OKLaboklab(22.38% 0.0043 -0.0689)
OKLCHoklch(22.38% 0.069 273.5)
XYZxyz(1.3450, 1.0571, 4.2700)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12173B #3B3612
analogous
#122B3B #12173B #21123B
triadic
#12173B #3B1217 #173B12
tetradic
#12173B #3B122B #3B3612 #123B21
square
#12173B #3B122B #3B3612 #123B21
split-complementary
#12173B #3B2112 #2B3B12
monochromatic
#070917 #070917 #12173B #20296A #2F3C99

Accessibility & contrast

On white

17.34
#12173B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12173B
17.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12173B#FFFFFF#000000##FFFFFF
##12173B1.0017.341.2117.34
#FFFFFF17.341.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031C3C
Deuteranopia (green-blind)
#00193A
Tritanopia (blue-blind)
#001F26
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #12173b;
/* rgb */ color: rgb(18, 23, 59);
/* oklch */ color: oklch(22.4% 0.069 273.5);
Tailwind
colors: {
  custom: {
    50: '#555371',
    500: '#12173b',
    950: '#000000',
  },
}
SCSS
$custom: #12173b;
$custom-light: #555371;
$custom-dark: #000000;
JSON
{
  "hex": "#12173b",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 59
  },
  "hsl": {
    "h": 232.683,
    "s": 53.247,
    "l": 15.098
  },
  "oklch": {
    "l": 0.22378,
    "c": 0.06907,
    "h": 273.5
  },
  "luminance": 0.01057
}

Semantic roles & 50–950 ramp

primary
#12173B
secondary
#746C35
accent
#CB4BDD
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030207
muted
#78787A

Preview Lab

Preview with #12173B

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

Preview Lab → · Contrast checker → · Palette generator →

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