#12174F#12174F

#12174F is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.3% C 0.101 H 272.3°. Best body text is #FFFFFF at 16.65:1 contrast (WCAG AA passes).

Color values

HEX#12174F
RGBrgb(18, 23, 79)
HSLhsl(235, 63%, 19%)
HSVhsv(235, 77%, 31%)
CMYKcmyk(77.2%, 70.9%, 0%, 69%)
CIE-LABlab(11.32, 19.53, -35.05)
CIE-LCHlch(11.32, 40.12, 299.13°)
OKLaboklab(24.34% 0.0041 -0.1012)
OKLCHoklch(24.34% 0.101 272.3)
XYZxyz(1.9667, 1.3057, 7.5440)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12174F #4F4A12
analogous
#12364F #12174F #2C124F
triadic
#12174F #4F1217 #174F12
tetradic
#12174F #4F1236 #4F4A12 #124F2C
square
#12174F #4F1236 #4F4A12 #124F2C
split-complementary
#12174F #4F2C12 #364F12
monochromatic
#060719 #07081D #12174F #1D2681 #2934B3

Accessibility & contrast

On white

16.65
#12174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12174F
16.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12174F#FFFFFF#000000##FFFFFF
##12174F1.0016.651.2616.65
#FFFFFF16.651.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002151
Deuteranopia (green-blind)
#001B4E
Tritanopia (blue-blind)
#002630
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #12174f;
/* rgb */ color: rgb(18, 23, 79);
/* oklch */ color: oklch(24.3% 0.101 272.3);
Tailwind
colors: {
  custom: {
    50: '#5a5481',
    500: '#12174f',
    950: '#000000',
  },
}
SCSS
$custom: #12174f;
$custom-light: #5a5481;
$custom-dark: #000000;
JSON
{
  "hex": "#12174f",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 235.082,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.24336,
    "c": 0.10132,
    "h": 272.3
  },
  "luminance": 0.01306
}

Semantic roles & 50–950 ramp

primary
#12174F
secondary
#888135
accent
#D842E6
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #12174F

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

Preview Lab → · Contrast checker → · Palette generator →

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