#1B178F#1B178F

#1B178F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.4% C 0.184 H 271.0°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#1B178F
RGBrgb(27, 23, 143)
HSLhsl(242, 72%, 33%)
HSVhsv(242, 84%, 56%)
CMYKcmyk(81.1%, 83.9%, 0%, 43.9%)
CIE-LABlab(19.34, 43.54, -63.50)
CIE-LCHlch(19.34, 76.99, 304.44°)
OKLaboklab(32.38% 0.0032 -0.1838)
OKLCHoklch(32.38% 0.184 271)
XYZxyz(5.7146, 2.8283, 26.2260)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B178F #8B8F17
analogous
#174F8F #1B178F #57178F
triadic
#1B178F #8F1B17 #178F1B
tetradic
#1B178F #8F174F #8B8F17 #178F57
square
#1B178F #8F174F #8B8F17 #178F57
split-complementary
#1B178F #8F5717 #4F8F17
monochromatic
#070626 #110F5A #1B178F #251FC4 #4540E0

Accessibility & contrast

On white

13.41
#1B178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1B178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B178F
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B178F#FFFFFF#000000##FFFFFF
##1B178F1.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#00298D
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1b178f;
/* rgb */ color: rgb(27, 23, 143);
/* oklch */ color: oklch(32.4% 0.184 271.0);
Tailwind
colors: {
  custom: {
    50: '#6f58b1',
    500: '#1b178f',
    950: '#000000',
  },
}
SCSS
$custom: #1b178f;
$custom-light: #6f58b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b178f",
  "rgb": {
    "r": 27,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 242,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32378,
    "c": 0.18382,
    "h": 271
  },
  "luminance": 0.02829
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B178F

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

Preview Lab → · Contrast checker → · Palette generator →

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