#1C178D#1C178D

#1C178D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.181 H 271.6°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#1C178D
RGBrgb(28, 23, 141)
HSLhsl(243, 72%, 32%)
HSVhsv(243, 84%, 55%)
CMYKcmyk(80.1%, 83.7%, 0%, 44.7%)
CIE-LABlab(19.15, 42.95, -62.57)
CIE-LCHlch(19.15, 75.90, 304.47°)
OKLaboklab(32.19% 0.0049 -0.1811)
OKLCHoklch(32.19% 0.181 271.6)
XYZxyz(5.5914, 2.7821, 25.4365)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C178D #888D17
analogous
#174D8D #1C178D #57178D
triadic
#1C178D #8D1C17 #178D1C
tetradic
#1C178D #8D174D #888D17 #178D57
square
#1C178D #8D174D #888D17 #178D57
split-complementary
#1C178D #8D5717 #4D8D17
monochromatic
#070624 #120E58 #1C178D #2620C2 #463FE0

Accessibility & contrast

On white

13.49
#1C178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1C178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C178D
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C178D#FFFFFF#000000##FFFFFF
##1C178D1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003490
Deuteranopia (green-blind)
#00288B
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1c178d;
/* rgb */ color: rgb(28, 23, 141);
/* oklch */ color: oklch(32.2% 0.181 271.6);
Tailwind
colors: {
  custom: {
    50: '#6f58b0',
    500: '#1c178d',
    950: '#000000',
  },
}
SCSS
$custom: #1c178d;
$custom-light: #6f58b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1c178d",
  "rgb": {
    "r": 28,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 242.542,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32187,
    "c": 0.18116,
    "h": 271.6
  },
  "luminance": 0.02783
}

Semantic roles & 50–950 ramp

primary
#1C178D
secondary
#BAC040
accent
#EF39E7
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1C178D

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

Preview Lab → · Contrast checker → · Palette generator →

#1C178D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva