#1C178E#1C178E

#1C178E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.182 H 271.5°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#1C178E
RGBrgb(28, 23, 142)
HSLhsl(243, 72%, 32%)
HSVhsv(243, 84%, 56%)
CMYKcmyk(80.3%, 83.8%, 0%, 44.3%)
CIE-LABlab(19.27, 43.28, -62.99)
CIE-LCHlch(19.27, 76.42, 304.49°)
OKLaboklab(32.31% 0.0047 -0.1823)
OKLCHoklch(32.31% 0.182 271.5)
XYZxyz(5.6661, 2.8120, 25.8301)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C178E #898E17
analogous
#174E8E #1C178E #58178E
triadic
#1C178E #8E1C17 #178E1C
tetradic
#1C178E #8E174E #898E17 #178E58
square
#1C178E #8E174E #898E17 #178E58
split-complementary
#1C178E #8E5817 #4E8E17
monochromatic
#070625 #120E59 #1C178E #2620C3 #463FE0

Accessibility & contrast

On white

13.44
#1C178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1C178E
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C178E#FFFFFF#000000##FFFFFF
##1C178E1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#00298C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1c178e;
/* rgb */ color: rgb(28, 23, 142);
/* oklch */ color: oklch(32.3% 0.182 271.5);
Tailwind
colors: {
  custom: {
    50: '#6f58b0',
    500: '#1c178e',
    950: '#000000',
  },
}
SCSS
$custom: #1c178e;
$custom-light: #6f58b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1c178e",
  "rgb": {
    "r": 28,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 242.521,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3231,
    "c": 0.18235,
    "h": 271.5
  },
  "luminance": 0.02813
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1C178E

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

Preview Lab → · Contrast checker → · Palette generator →

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