#1C178A#1C178A

#1C178A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.178 H 271.8°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#1C178A
RGBrgb(28, 23, 138)
HSLhsl(243, 71%, 32%)
HSVhsv(243, 83%, 54%)
CMYKcmyk(79.7%, 83.3%, 0%, 45.9%)
CIE-LABlab(18.77, 41.98, -61.32)
CIE-LCHlch(18.77, 74.31, 304.40°)
OKLaboklab(31.82% 0.0056 -0.1775)
OKLCHoklch(31.82% 0.178 271.8)
XYZxyz(5.3712, 2.6941, 24.2768)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C178A #858A17
analogous
#174C8A #1C178A #56178A
triadic
#1C178A #8A1C17 #178A1C
tetradic
#1C178A #8A174C #858A17 #178A56
square
#1C178A #8A174C #858A17 #178A56
split-complementary
#1C178A #8A5617 #4C8A17
monochromatic
#070621 #110E56 #1C178A #2720BE #443DDF

Accessibility & contrast

On white

13.65
#1C178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1C178A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C178A
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C178A#FFFFFF#000000##FFFFFF
##1C178A1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002888
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1c178a;
/* rgb */ color: rgb(28, 23, 138);
/* oklch */ color: oklch(31.8% 0.178 271.8);
Tailwind
colors: {
  custom: {
    50: '#6e58ad',
    500: '#1c178a',
    950: '#000000',
  },
}
SCSS
$custom: #1c178a;
$custom-light: #6e58ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1c178a",
  "rgb": {
    "r": 28,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 242.609,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31819,
    "c": 0.17755,
    "h": 271.8
  },
  "luminance": 0.02695
}

Semantic roles & 50–950 ramp

primary
#1C178A
secondary
#B8BE3F
accent
#EE3AE6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #1C178A

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

Preview Lab → · Contrast checker → · Palette generator →

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