#1B177A#1B177A

#1B177A is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.8% C 0.158 H 273.0°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#1B177A
RGBrgb(27, 23, 122)
HSLhsl(242, 68%, 28%)
HSVhsv(242, 81%, 48%)
CMYKcmyk(77.9%, 81.1%, 0%, 52.2%)
CIE-LABlab(16.75, 36.58, -54.54)
CIE-LCHlch(16.75, 65.67, 303.85°)
OKLaboklab(29.82% 0.0082 -0.1578)
OKLCHoklch(29.82% 0.158 273)
XYZxyz(4.2701, 2.2505, 18.6179)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B177A #767A17
analogous
#17447A #1B177A #4C177A
triadic
#1B177A #7A1B17 #177A1B
tetradic
#1B177A #7A1744 #767A17 #177A4C
square
#1B177A #7A1744 #767A17 #177A4C
split-complementary
#1B177A #7A4C17 #447A17
monochromatic
#06051A #100D47 #1B177A #2621AD #3A33D9

Accessibility & contrast

On white

14.48
#1B177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1B177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B177A
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B177A#FFFFFF#000000##FFFFFF
##1B177A1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7D
Deuteranopia (green-blind)
#002478
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1b177a;
/* rgb */ color: rgb(27, 23, 122);
/* oklch */ color: oklch(29.8% 0.158 273.0);
Tailwind
colors: {
  custom: {
    50: '#6956a2',
    500: '#1b177a',
    950: '#000000',
  },
}
SCSS
$custom: #1b177a;
$custom-light: #6956a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1b177a",
  "rgb": {
    "r": 27,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 242.424,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29822,
    "c": 0.15803,
    "h": 273
  },
  "luminance": 0.02251
}

Semantic roles & 50–950 ramp

primary
#1B177A
secondary
#AAAF3E
accent
#EB3DE4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #1B177A

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

Preview Lab → · Contrast checker → · Palette generator →

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