#12173F#12173F

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

Color values

HEX#12173F
RGBrgb(18, 23, 63)
HSLhsl(233, 56%, 16%)
HSVhsv(233, 71%, 25%)
CMYKcmyk(71.4%, 63.5%, 0%, 75.3%)
CIE-LABlab(9.80, 12.88, -26.35)
CIE-LCHlch(9.80, 29.33, 296.05°)
OKLaboklab(22.74% 0.0045 -0.0757)
OKLCHoklch(22.74% 0.076 273.4)
XYZxyz(1.4528, 1.1002, 4.8375)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12173F #3F3A12
analogous
#122D3F #12173F #23123F
triadic
#12173F #3F1217 #173F12
tetradic
#12173F #3F122D #3F3A12 #123F23
square
#12173F #3F122D #3F3A12 #123F23
split-complementary
#12173F #3F2312 #2D3F12
monochromatic
#070918 #070918 #12173F #20286F #2D3A9E

Accessibility & contrast

On white

17.21
#12173F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12173F
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12173F#FFFFFF#000000##FFFFFF
##12173F1.0017.211.2217.21
#FFFFFF17.211.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D40
Deuteranopia (green-blind)
#00193E
Tritanopia (blue-blind)
#002128
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #12173f;
/* rgb */ color: rgb(18, 23, 63);
/* oklch */ color: oklch(22.7% 0.076 273.4);
Tailwind
colors: {
  custom: {
    50: '#565374',
    500: '#12173f',
    950: '#000000',
  },
}
SCSS
$custom: #12173f;
$custom-light: #565374;
$custom-dark: #000000;
JSON
{
  "hex": "#12173f",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 63
  },
  "hsl": {
    "h": 233.333,
    "s": 55.556,
    "l": 15.882
  },
  "oklch": {
    "l": 0.22743,
    "c": 0.07583,
    "h": 273.4
  },
  "luminance": 0.011
}

Semantic roles & 50–950 ramp

primary
#12173F
secondary
#787135
accent
#CE49DF
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #12173F

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

Preview Lab → · Contrast checker → · Palette generator →

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