#12174B#12174B

#12174B is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.9% C 0.095 H 272.6°. Best body text is #FFFFFF at 16.80:1 contrast (WCAG AA passes).

Color values

HEX#12174B
RGBrgb(18, 23, 75)
HSLhsl(235, 61%, 18%)
HSVhsv(235, 76%, 29%)
CMYKcmyk(76%, 69.3%, 0%, 70.6%)
CIE-LABlab(10.92, 17.88, -32.94)
CIE-LCHlch(10.92, 37.49, 298.50°)
OKLaboklab(23.92% 0.0044 -0.0951)
OKLCHoklch(23.92% 0.095 272.6)
XYZxyz(1.8254, 1.2492, 6.8002)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12174B #4B4612
analogous
#12334B #12174B #29124B
triadic
#12174B #4B1217 #174B12
tetradic
#12174B #4B1233 #4B4612 #124B29
square
#12174B #4B1233 #4B4612 #124B29
split-complementary
#12174B #4B2912 #334B12
monochromatic
#060819 #06081A #12174B #1E267C #2A35AE

Accessibility & contrast

On white

16.80
#12174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12174B
16.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12174B#FFFFFF#000000##FFFFFF
##12174B1.0016.801.2516.80
#FFFFFF16.801.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12174b;
/* rgb */ color: rgb(18, 23, 75);
/* oklch */ color: oklch(23.9% 0.095 272.6);
Tailwind
colors: {
  custom: {
    50: '#59537e',
    500: '#12174b',
    950: '#000000',
  },
}
SCSS
$custom: #12174b;
$custom-light: #59537e;
$custom-dark: #000000;
JSON
{
  "hex": "#12174b",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 234.737,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.23919,
    "c": 0.09517,
    "h": 272.6
  },
  "luminance": 0.01249
}

Semantic roles & 50–950 ramp

primary
#12174B
secondary
#847D35
accent
#D643E4
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #12174B

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

Preview Lab → · Contrast checker → · Palette generator →

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