#1B2177#1B2177

#1B2177 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.0% C 0.143 H 271.5°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#1B2177
RGBrgb(27, 33, 119)
HSLhsl(236, 63%, 29%)
HSVhsv(236, 77%, 47%)
CMYKcmyk(77.3%, 72.3%, 0%, 53.3%)
CIE-LABlab(18.59, 29.39, -49.58)
CIE-LCHlch(18.59, 57.63, 300.66°)
OKLaboklab(31.03% 0.0039 -0.1434)
OKLCHoklch(31.03% 0.144 271.5)
XYZxyz(4.3245, 2.6522, 17.7332)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2177 #77711B
analogous
#1B4F77 #1B2177 #431B77
triadic
#1B2177 #771B21 #21771B
tetradic
#1B2177 #771B4F #77711B #1B7743
square
#1B2177 #771B4F #77711B #1B7743
split-complementary
#1B2177 #77431B #4F771B
monochromatic
#060719 #101345 #1B2177 #262FA9 #3A44D2

Accessibility & contrast

On white

13.72
#1B2177 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1B2177 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2177
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2177#FFFFFF#000000##FFFFFF
##1B21771.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327A
Deuteranopia (green-blind)
#002975
Tritanopia (blue-blind)
#003949
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1b2177;
/* rgb */ color: rgb(27, 33, 119);
/* oklch */ color: oklch(31.0% 0.143 271.5);
Tailwind
colors: {
  custom: {
    50: '#685c9f',
    500: '#1b2177',
    950: '#000000',
  },
}
SCSS
$custom: #1b2177;
$custom-light: #685c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2177",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 119
  },
  "hsl": {
    "h": 236.087,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31033,
    "c": 0.1435,
    "h": 271.5
  },
  "luminance": 0.02653
}

Semantic roles & 50–950 ramp

primary
#1B2177
secondary
#ABA542
accent
#DB42E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #1B2177

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

Preview Lab → · Contrast checker → · Palette generator →

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