#1B2176#1B2176

#1B2176 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.142 H 271.6°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#1B2176
RGBrgb(27, 33, 118)
HSLhsl(236, 63%, 28%)
HSVhsv(236, 77%, 46%)
CMYKcmyk(77.1%, 72%, 0%, 53.7%)
CIE-LABlab(18.49, 29.01, -49.11)
CIE-LCHlch(18.49, 57.04, 300.58°)
OKLaboklab(30.93% 0.004 -0.1421)
OKLCHoklch(30.93% 0.142 271.6)
XYZxyz(4.2648, 2.6283, 17.4186)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2176 #76701B
analogous
#1B4E76 #1B2176 #421B76
triadic
#1B2176 #761B21 #21761B
tetradic
#1B2176 #761B4E #76701B #1B7642
square
#1B2176 #761B4E #76701B #1B7642
split-complementary
#1B2176 #76421B #4E761B
monochromatic
#060719 #101344 #1B2176 #262FA8 #3A44D2

Accessibility & contrast

On white

13.76
#1B2176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B2176
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2176#FFFFFF#000000##FFFFFF
##1B21761.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#002974
Tritanopia (blue-blind)
#003848
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1b2176;
/* rgb */ color: rgb(27, 33, 118);
/* oklch */ color: oklch(30.9% 0.142 271.6);
Tailwind
colors: {
  custom: {
    50: '#675c9e',
    500: '#1b2176',
    950: '#000000',
  },
}
SCSS
$custom: #1b2176;
$custom-light: #675c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2176",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 118
  },
  "hsl": {
    "h": 236.044,
    "s": 62.759,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30926,
    "c": 0.14214,
    "h": 271.6
  },
  "luminance": 0.02629
}

Semantic roles & 50–950 ramp

primary
#1B2176
secondary
#AAA442
accent
#DB42E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1B2176

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

Preview Lab → · Contrast checker → · Palette generator →

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