#1B178A#1B178A

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

Color values

HEX#1B178A
RGBrgb(27, 23, 138)
HSLhsl(242, 71%, 32%)
HSVhsv(242, 83%, 54%)
CMYKcmyk(80.4%, 83.3%, 0%, 45.9%)
CIE-LABlab(18.71, 41.92, -61.42)
CIE-LCHlch(18.71, 74.36, 304.31°)
OKLaboklab(31.76% 0.0044 -0.1778)
OKLCHoklch(31.76% 0.178 271.4)
XYZxyz(5.3443, 2.6802, 24.2755)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B178A #868A17
analogous
#174D8A #1B178A #55178A
triadic
#1B178A #8A1B17 #178A1B
tetradic
#1B178A #8A174D #868A17 #178A55
square
#1B178A #8A174D #868A17 #178A55
split-complementary
#1B178A #8A5517 #4D8A17
monochromatic
#060621 #110E56 #1B178A #2520BE #423DDF

Accessibility & contrast

On white

13.67
#1B178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B178A
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B178A#FFFFFF#000000##FFFFFF
##1B178A1.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.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: #1b178a;
/* rgb */ color: rgb(27, 23, 138);
/* oklch */ color: oklch(31.8% 0.178 271.4);
Tailwind
colors: {
  custom: {
    50: '#6e57ad',
    500: '#1b178a',
    950: '#000000',
  },
}
SCSS
$custom: #1b178a;
$custom-light: #6e57ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1b178a",
  "rgb": {
    "r": 27,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 242.087,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31762,
    "c": 0.17782,
    "h": 271.4
  },
  "luminance": 0.02681
}

Semantic roles & 50–950 ramp

primary
#1B178A
secondary
#B9BE3F
accent
#EE3AE8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #1B178A

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

Preview Lab → · Contrast checker → · Palette generator →

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