#1B177F#1B177F

#1B177F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.164 H 272.5°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#1B177F
RGBrgb(27, 23, 127)
HSLhsl(242, 69%, 29%)
HSVhsv(242, 82%, 50%)
CMYKcmyk(78.7%, 81.9%, 0%, 50.2%)
CIE-LABlab(17.36, 38.28, -56.73)
CIE-LCHlch(17.36, 68.44, 304.01°)
OKLaboklab(30.42% 0.0071 -0.1642)
OKLCHoklch(30.42% 0.164 272.5)
XYZxyz(4.5879, 2.3776, 20.2917)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B177F #7B7F17
analogous
#17477F #1B177F #4F177F
triadic
#1B177F #7F1B17 #177F1B
tetradic
#1B177F #7F1747 #7B7F17 #177F4F
square
#1B177F #7F1747 #7B7F17 #177F4F
split-complementary
#1B177F #7F4F17 #477F17
monochromatic
#06051A #100E4B #1B177F #2620B3 #3C36DB

Accessibility & contrast

On white

14.23
#1B177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#1B177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B177F
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B177F#FFFFFF#000000##FFFFFF
##1B177F1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1b177f;
/* rgb */ color: rgb(27, 23, 127);
/* oklch */ color: oklch(30.4% 0.164 272.5);
Tailwind
colors: {
  custom: {
    50: '#6b57a5',
    500: '#1b177f',
    950: '#000000',
  },
}
SCSS
$custom: #1b177f;
$custom-light: #6b57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b177f",
  "rgb": {
    "r": 27,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 242.308,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30422,
    "c": 0.16432,
    "h": 272.5
  },
  "luminance": 0.02378
}

Semantic roles & 50–950 ramp

primary
#1B177F
secondary
#AFB43E
accent
#EC3CE5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1B177F

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

Preview Lab → · Contrast checker → · Palette generator →

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