#1B176D#1B176D

#1B176D is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.3% C 0.141 H 274.6°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#1B176D
RGBrgb(27, 23, 109)
HSLhsl(243, 65%, 26%)
HSVhsv(243, 79%, 43%)
CMYKcmyk(75.2%, 78.9%, 0%, 57.3%)
CIE-LABlab(15.22, 32.06, -48.67)
CIE-LCHlch(15.22, 58.28, 303.37°)
OKLaboklab(28.3% 0.0113 -0.1408)
OKLCHoklch(28.3% 0.141 274.6)
XYZxyz(3.5178, 1.9496, 14.6560)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B176D #696D17
analogous
#173E6D #1B176D #46176D
triadic
#1B176D #6D1B17 #176D1B
tetradic
#1B176D #6D173E #696D17 #176D46
square
#1B176D #6D173E #696D17 #176D46
split-complementary
#1B176D #6D4617 #3E6D17
monochromatic
#060519 #0E0C3A #1B176D #2822A0 #342CD2

Accessibility & contrast

On white

15.11
#1B176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#1B176D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B176D
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B176D#FFFFFF#000000##FFFFFF
##1B176D1.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6F
Deuteranopia (green-blind)
#00226B
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1b176d;
/* rgb */ color: rgb(27, 23, 109);
/* oklch */ color: oklch(28.3% 0.141 274.6);
Tailwind
colors: {
  custom: {
    50: '#665598',
    500: '#1b176d',
    950: '#000000',
  },
}
SCSS
$custom: #1b176d;
$custom-light: #665598;
$custom-dark: #000000;
JSON
{
  "hex": "#1b176d",
  "rgb": {
    "r": 27,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 242.791,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28295,
    "c": 0.14121,
    "h": 274.6
  },
  "luminance": 0.0195
}

Semantic roles & 50–950 ramp

primary
#1B176D
secondary
#9EA33D
accent
#E840E0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1B176D

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

Preview Lab → · Contrast checker → · Palette generator →

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