#12174A#12174A

#12174A is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.8% C 0.094 H 272.7°. Best body text is #FFFFFF at 16.84:1 contrast (WCAG AA passes).

Color values

HEX#12174A
RGBrgb(18, 23, 74)
HSLhsl(235, 61%, 18%)
HSVhsv(235, 76%, 29%)
CMYKcmyk(75.7%, 68.9%, 0%, 71%)
CIE-LABlab(10.82, 17.47, -32.41)
CIE-LCHlch(10.82, 36.82, 298.33°)
OKLaboklab(23.82% 0.0044 -0.0935)
OKLCHoklch(23.82% 0.094 272.7)
XYZxyz(1.7915, 1.2356, 6.6213)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12174A #4A4512
analogous
#12334A #12174A #29124A
triadic
#12174A #4A1217 #174A12
tetradic
#12174A #4A1233 #4A4512 #124A29
square
#12174A #4A1233 #4A4512 #124A29
split-complementary
#12174A #4A2912 #334A12
monochromatic
#060819 #060819 #12174A #1E267B #2A36AC

Accessibility & contrast

On white

16.84
#12174A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#12174A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12174A
16.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12174A#FFFFFF#000000##FFFFFF
##12174A1.0016.841.2516.84
#FFFFFF16.841.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204C
Deuteranopia (green-blind)
#001B49
Tritanopia (blue-blind)
#00242D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #12174a;
/* rgb */ color: rgb(18, 23, 74);
/* oklch */ color: oklch(23.8% 0.094 272.7);
Tailwind
colors: {
  custom: {
    50: '#59537d',
    500: '#12174a',
    950: '#000000',
  },
}
SCSS
$custom: #12174a;
$custom-light: #59537d;
$custom-dark: #000000;
JSON
{
  "hex": "#12174a",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 74
  },
  "hsl": {
    "h": 234.643,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.23817,
    "c": 0.09361,
    "h": 272.7
  },
  "luminance": 0.01236
}

Semantic roles & 50–950 ramp

primary
#12174A
secondary
#837C35
accent
#D644E4
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #12174A

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

Preview Lab → · Contrast checker → · Palette generator →

#12174A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva