#1B178D#1B178D

#1B178D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.181 H 271.2°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#1B178D
RGBrgb(27, 23, 141)
HSLhsl(242, 72%, 32%)
HSVhsv(242, 84%, 55%)
CMYKcmyk(80.9%, 83.7%, 0%, 44.7%)
CIE-LABlab(19.09, 42.89, -62.67)
CIE-LCHlch(19.09, 75.95, 304.39°)
OKLaboklab(32.13% 0.0037 -0.1814)
OKLCHoklch(32.13% 0.181 271.2)
XYZxyz(5.5645, 2.7683, 25.4352)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B178D #898D17
analogous
#174E8D #1B178D #56178D
triadic
#1B178D #8D1B17 #178D1B
tetradic
#1B178D #8D174E #898D17 #178D56
square
#1B178D #8D174E #898D17 #178D56
split-complementary
#1B178D #8D5617 #4E8D17
monochromatic
#070624 #110E58 #1B178D #2520C2 #443FE0

Accessibility & contrast

On white

13.52
#1B178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1B178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B178D
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B178D#FFFFFF#000000##FFFFFF
##1B178D1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003490
Deuteranopia (green-blind)
#00288B
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1b178d;
/* rgb */ color: rgb(27, 23, 141);
/* oklch */ color: oklch(32.1% 0.181 271.2);
Tailwind
colors: {
  custom: {
    50: '#6f58b0',
    500: '#1b178d',
    950: '#000000',
  },
}
SCSS
$custom: #1b178d;
$custom-light: #6f58b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b178d",
  "rgb": {
    "r": 27,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 242.034,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32131,
    "c": 0.18143,
    "h": 271.2
  },
  "luminance": 0.02769
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B178D

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

Preview Lab → · Contrast checker → · Palette generator →

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