#1B176A#1B176A

#1B176A is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.0% C 0.137 H 275.0°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#1B176A
RGBrgb(27, 23, 106)
HSLhsl(243, 64%, 25%)
HSVhsv(243, 78%, 42%)
CMYKcmyk(74.5%, 78.3%, 0%, 58.4%)
CIE-LABlab(14.88, 30.99, -47.27)
CIE-LCHlch(14.88, 56.52, 303.25°)
OKLaboklab(27.95% 0.0119 -0.1367)
OKLCHoklch(27.95% 0.137 275)
XYZxyz(3.3590, 1.8861, 13.8199)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B176A #666A17
analogous
#173C6A #1B176A #45176A
triadic
#1B176A #6A1B17 #176A1B
tetradic
#1B176A #6A173C #666A17 #176A45
square
#1B176A #6A173C #666A17 #176A45
split-complementary
#1B176A #6A4517 #3C6A17
monochromatic
#060519 #0E0C38 #1B176A #28229C #352DCF

Accessibility & contrast

On white

15.25
#1B176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#1B176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B176A
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B176A#FFFFFF#000000##FFFFFF
##1B176A1.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002269
Tritanopia (blue-blind)
#002F3F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1b176a;
/* rgb */ color: rgb(27, 23, 106);
/* oklch */ color: oklch(28.0% 0.137 275.0);
Tailwind
colors: {
  custom: {
    50: '#655596',
    500: '#1b176a',
    950: '#000000',
  },
}
SCSS
$custom: #1b176a;
$custom-light: #655596;
$custom-dark: #000000;
JSON
{
  "hex": "#1b176a",
  "rgb": {
    "r": 27,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 242.892,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.2795,
    "c": 0.13721,
    "h": 275
  },
  "luminance": 0.01886
}

Semantic roles & 50–950 ramp

primary
#1B176A
secondary
#9BA03D
accent
#E740DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #1B176A

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

Preview Lab → · Contrast checker → · Palette generator →

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