#1B177D#1B177D

#1B177D is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.162 H 272.7°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#1B177D
RGBrgb(27, 23, 125)
HSLhsl(242, 69%, 29%)
HSVhsv(242, 82%, 49%)
CMYKcmyk(78.4%, 81.6%, 0%, 51%)
CIE-LABlab(17.11, 37.60, -55.86)
CIE-LCHlch(17.11, 67.33, 303.95°)
OKLaboklab(30.18% 0.0075 -0.1616)
OKLCHoklch(30.18% 0.162 272.7)
XYZxyz(4.4588, 2.3260, 19.6120)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B177D #797D17
analogous
#17467D #1B177D #4E177D
triadic
#1B177D #7D1B17 #177D1B
tetradic
#1B177D #7D1746 #797D17 #177D4E
square
#1B177D #7D1746 #797D17 #177D4E
split-complementary
#1B177D #7D4E17 #467D17
monochromatic
#06051A #100D49 #1B177D #2621B1 #3B35DA

Accessibility & contrast

On white

14.33
#1B177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#1B177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B177D
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B177D#FFFFFF#000000##FFFFFF
##1B177D1.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00257B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1b177d;
/* rgb */ color: rgb(27, 23, 125);
/* oklch */ color: oklch(30.2% 0.162 272.7);
Tailwind
colors: {
  custom: {
    50: '#6a56a4',
    500: '#1b177d',
    950: '#000000',
  },
}
SCSS
$custom: #1b177d;
$custom-light: #6a56a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b177d",
  "rgb": {
    "r": 27,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 242.353,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30181,
    "c": 0.16182,
    "h": 272.7
  },
  "luminance": 0.02326
}

Semantic roles & 50–950 ramp

primary
#1B177D
secondary
#ADB23E
accent
#EC3CE5
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1B177D

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

Preview Lab → · Contrast checker → · Palette generator →

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