#1B178E#1B178E

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

Color values

HEX#1B178E
RGBrgb(27, 23, 142)
HSLhsl(242, 72%, 32%)
HSVhsv(242, 84%, 56%)
CMYKcmyk(81%, 83.8%, 0%, 44.3%)
CIE-LABlab(19.22, 43.22, -63.09)
CIE-LCHlch(19.22, 76.47, 304.41°)
OKLaboklab(32.25% 0.0035 -0.1826)
OKLCHoklch(32.25% 0.183 271.1)
XYZxyz(5.6392, 2.7982, 25.8288)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B178E #8A8E17
analogous
#174E8E #1B178E #57178E
triadic
#1B178E #8E1B17 #178E1B
tetradic
#1B178E #8E174E #8A8E17 #178E57
square
#1B178E #8E174E #8A8E17 #178E57
split-complementary
#1B178E #8E5717 #4E8E17
monochromatic
#070625 #110E59 #1B178E #2520C3 #453FE0

Accessibility & contrast

On white

13.46
#1B178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B178E
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B178E#FFFFFF#000000##FFFFFF
##1B178E1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b178e;
/* rgb */ color: rgb(27, 23, 142);
/* oklch */ color: oklch(32.3% 0.183 271.1);
Tailwind
colors: {
  custom: {
    50: '#6f58b0',
    500: '#1b178e',
    950: '#000000',
  },
}
SCSS
$custom: #1b178e;
$custom-light: #6f58b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b178e",
  "rgb": {
    "r": 27,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 242.017,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32254,
    "c": 0.18262,
    "h": 271.1
  },
  "luminance": 0.02799
}

Semantic roles & 50–950 ramp

primary
#1B178E
secondary
#BCC040
accent
#EF39E9
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1B178E

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

Preview Lab → · Contrast checker → · Palette generator →

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