#1B166A#1B166A

#1B166A is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.8% C 0.138 H 275.2°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#1B166A
RGBrgb(27, 22, 106)
HSLhsl(244, 66%, 25%)
HSVhsv(244, 79%, 42%)
CMYKcmyk(74.5%, 79.2%, 0%, 58.4%)
CIE-LABlab(14.66, 31.60, -47.63)
CIE-LCHlch(14.66, 57.15, 303.56°)
OKLaboklab(27.8% 0.0125 -0.1377)
OKLCHoklch(27.8% 0.138 275.2)
XYZxyz(3.3396, 1.8471, 13.8134)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B166A #656A16
analogous
#163B6A #1B166A #45166A
triadic
#1B166A #6A1B16 #166A1B
tetradic
#1B166A #6A163B #656A16 #166A45
square
#1B166A #6A163B #656A16 #166A45
split-complementary
#1B166A #6A4516 #3B6A16
monochromatic
#060519 #0E0B37 #1B166A #28219D #352BCF

Accessibility & contrast

On white

15.34
#1B166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#1B166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B166A
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B166A#FFFFFF#000000##FFFFFF
##1B166A1.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002169
Tritanopia (blue-blind)
#002F3F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1b166a;
/* rgb */ color: rgb(27, 22, 106);
/* oklch */ color: oklch(27.8% 0.138 275.2);
Tailwind
colors: {
  custom: {
    50: '#655596',
    500: '#1b166a',
    950: '#000000',
  },
}
SCSS
$custom: #1b166a;
$custom-light: #655596;
$custom-dark: #000000;
JSON
{
  "hex": "#1b166a",
  "rgb": {
    "r": 27,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 243.571,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.27799,
    "c": 0.13827,
    "h": 275.2
  },
  "luminance": 0.01847
}

Semantic roles & 50–950 ramp

primary
#1B166A
secondary
#9AA03B
accent
#E93FDE
background
#F6F5F9
surface
#EBE8F2
border
#C6C4CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #1B166A

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

Preview Lab → · Contrast checker → · Palette generator →

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