#12174C#12174C

#12174C is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.0% C 0.097 H 272.6°. Best body text is #FFFFFF at 16.77:1 contrast (WCAG AA passes).

Color values

HEX#12174C
RGBrgb(18, 23, 76)
HSLhsl(235, 62%, 18%)
HSVhsv(235, 76%, 30%)
CMYKcmyk(76.3%, 69.7%, 0%, 70.2%)
CIE-LABlab(11.01, 18.30, -33.47)
CIE-LCHlch(11.01, 38.15, 298.66°)
OKLaboklab(24.02% 0.0043 -0.0966)
OKLCHoklch(24.02% 0.097 272.6)
XYZxyz(1.8599, 1.2630, 6.9818)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12174C #4C4712
analogous
#12344C #12174C #2A124C
triadic
#12174C #4C1217 #174C12
tetradic
#12174C #4C1234 #4C4712 #124C2A
square
#12174C #4C1234 #4C4712 #124C2A
split-complementary
#12174C #4C2A12 #344C12
monochromatic
#060719 #06081B #12174C #1E267D #2935AF

Accessibility & contrast

On white

16.77
#12174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12174C
16.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12174C#FFFFFF#000000##FFFFFF
##12174C1.0016.771.2516.77
#FFFFFF16.771.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204E
Deuteranopia (green-blind)
#001B4B
Tritanopia (blue-blind)
#00252F
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #12174c;
/* rgb */ color: rgb(18, 23, 76);
/* oklch */ color: oklch(24.0% 0.097 272.6);
Tailwind
colors: {
  custom: {
    50: '#59547f',
    500: '#12174c',
    950: '#000000',
  },
}
SCSS
$custom: #12174c;
$custom-light: #59547f;
$custom-dark: #000000;
JSON
{
  "hex": "#12174c",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 234.828,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.24023,
    "c": 0.09672,
    "h": 272.6
  },
  "luminance": 0.01263
}

Semantic roles & 50–950 ramp

primary
#12174C
secondary
#857E35
accent
#D743E5
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #12174C

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

Preview Lab → · Contrast checker → · Palette generator →

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