#1B166B#1B166B

#1B166B is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.9% C 0.140 H 275.0°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#1B166B
RGBrgb(27, 22, 107)
HSLhsl(244, 66%, 25%)
HSVhsv(244, 79%, 42%)
CMYKcmyk(74.8%, 79.4%, 0%, 58%)
CIE-LABlab(14.78, 31.95, -48.09)
CIE-LCHlch(14.78, 57.74, 303.60°)
OKLaboklab(27.92% 0.0123 -0.1391)
OKLCHoklch(27.92% 0.14 275)
XYZxyz(3.3919, 1.8680, 14.0889)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B166B #666B16
analogous
#163C6B #1B166B #45166B
triadic
#1B166B #6B1B16 #166B1B
tetradic
#1B166B #6B163C #666B16 #166B45
square
#1B166B #6B163C #666B16 #166B45
split-complementary
#1B166B #6B4516 #3C6B16
monochromatic
#060519 #0E0C38 #1B166B #28209E #352BD1

Accessibility & contrast

On white

15.29
#1B166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B166B
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B166B#FFFFFF#000000##FFFFFF
##1B166B1.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b166b;
/* rgb */ color: rgb(27, 22, 107);
/* oklch */ color: oklch(27.9% 0.140 275.0);
Tailwind
colors: {
  custom: {
    50: '#665596',
    500: '#1b166b',
    950: '#000000',
  },
}
SCSS
$custom: #1b166b;
$custom-light: #665596;
$custom-dark: #000000;
JSON
{
  "hex": "#1b166b",
  "rgb": {
    "r": 27,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 243.529,
    "s": 65.891,
    "l": 25.294
  },
  "oklch": {
    "l": 0.27915,
    "c": 0.1396,
    "h": 275
  },
  "luminance": 0.01868
}

Semantic roles & 50–950 ramp

primary
#1B166B
secondary
#9BA13B
accent
#E93FDF
background
#F6F5F9
surface
#EBE8F2
border
#C6C4CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #1B166B

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

Preview Lab → · Contrast checker → · Palette generator →

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