#12174D#12174D

#12174D is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.1% C 0.098 H 272.5°. Best body text is #FFFFFF at 16.73:1 contrast (WCAG AA passes).

Color values

HEX#12174D
RGBrgb(18, 23, 77)
HSLhsl(235, 62%, 19%)
HSVhsv(235, 77%, 30%)
CMYKcmyk(76.6%, 70.1%, 0%, 69.8%)
CIE-LABlab(11.11, 18.71, -34.00)
CIE-LCHlch(11.11, 38.81, 298.82°)
OKLaboklab(24.13% 0.0043 -0.0982)
OKLCHoklch(24.13% 0.098 272.5)
XYZxyz(1.8950, 1.2770, 7.1664)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12174D #4D4812
analogous
#12344D #12174D #2A124D
triadic
#12174D #4D1217 #174D12
tetradic
#12174D #4D1234 #4D4812 #124D2A
square
#12174D #4D1234 #4D4812 #124D2A
split-complementary
#12174D #4D2A12 #344D12
monochromatic
#060719 #06081B #12174D #1E267F #2935B0

Accessibility & contrast

On white

16.73
#12174D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#12174D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12174D
16.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12174D#FFFFFF#000000##FFFFFF
##12174D1.0016.731.2616.73
#FFFFFF16.731.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204F
Deuteranopia (green-blind)
#001B4C
Tritanopia (blue-blind)
#00252F
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #12174d;
/* rgb */ color: rgb(18, 23, 77);
/* oklch */ color: oklch(24.1% 0.098 272.5);
Tailwind
colors: {
  custom: {
    50: '#5a547f',
    500: '#12174d',
    950: '#000000',
  },
}
SCSS
$custom: #12174d;
$custom-light: #5a547f;
$custom-dark: #000000;
JSON
{
  "hex": "#12174d",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 77
  },
  "hsl": {
    "h": 234.915,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.24126,
    "c": 0.09826,
    "h": 272.5
  },
  "luminance": 0.01277
}

Semantic roles & 50–950 ramp

primary
#12174D
secondary
#867F35
accent
#D743E5
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #12174D

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

Preview Lab → · Contrast checker → · Palette generator →

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