#1B177E#1B177E

#1B177E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.163 H 272.6°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#1B177E
RGBrgb(27, 23, 126)
HSLhsl(242, 69%, 29%)
HSVhsv(242, 82%, 49%)
CMYKcmyk(78.6%, 81.7%, 0%, 50.6%)
CIE-LABlab(17.23, 37.94, -56.29)
CIE-LCHlch(17.23, 67.89, 303.98°)
OKLaboklab(30.3% 0.0073 -0.1629)
OKLCHoklch(30.3% 0.163 272.6)
XYZxyz(4.5230, 2.3517, 19.9502)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B177E #7A7E17
analogous
#17477E #1B177E #4F177E
triadic
#1B177E #7E1B17 #177E1B
tetradic
#1B177E #7E1747 #7A7E17 #177E4F
square
#1B177E #7E1747 #7A7E17 #177E4F
split-complementary
#1B177E #7E4F17 #477E17
monochromatic
#06051A #100E4A #1B177E #2620B2 #3C35DA

Accessibility & contrast

On white

14.28
#1B177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B177E
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B177E#FFFFFF#000000##FFFFFF
##1B177E1.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1b177e;
/* rgb */ color: rgb(27, 23, 126);
/* oklch */ color: oklch(30.3% 0.163 272.6);
Tailwind
colors: {
  custom: {
    50: '#6b57a5',
    500: '#1b177e',
    950: '#000000',
  },
}
SCSS
$custom: #1b177e;
$custom-light: #6b57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b177e",
  "rgb": {
    "r": 27,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 242.33,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30302,
    "c": 0.16307,
    "h": 272.6
  },
  "luminance": 0.02352
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B177E

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

Preview Lab → · Contrast checker → · Palette generator →

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