#1B166C#1B166C

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

Color values

HEX#1B166C
RGBrgb(27, 22, 108)
HSLhsl(243, 66%, 25%)
HSVhsv(243, 80%, 42%)
CMYKcmyk(75%, 79.6%, 0%, 57.6%)
CIE-LABlab(14.89, 32.30, -48.55)
CIE-LCHlch(14.89, 58.32, 303.63°)
OKLaboklab(28.03% 0.012 -0.1404)
OKLCHoklch(28.03% 0.141 274.9)
XYZxyz(3.4448, 1.8892, 14.3676)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B166C #676C16
analogous
#163C6C #1B166C #46166C
triadic
#1B166C #6C1B16 #166C1B
tetradic
#1B166C #6C163C #676C16 #166C46
square
#1B166C #6C163C #676C16 #166C46
split-complementary
#1B166C #6C4616 #3C6C16
monochromatic
#060519 #0E0C39 #1B166C #28209F #342BD2

Accessibility & contrast

On white

15.24
#1B166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#1B166C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B166C
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B166C#FFFFFF#000000##FFFFFF
##1B166C1.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296E
Deuteranopia (green-blind)
#00216A
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1b166c;
/* rgb */ color: rgb(27, 22, 108);
/* oklch */ color: oklch(28.0% 0.141 274.9);
Tailwind
colors: {
  custom: {
    50: '#665597',
    500: '#1b166c',
    950: '#000000',
  },
}
SCSS
$custom: #1b166c;
$custom-light: #665597;
$custom-dark: #000000;
JSON
{
  "hex": "#1b166c",
  "rgb": {
    "r": 27,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 243.488,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28031,
    "c": 0.14092,
    "h": 274.9
  },
  "luminance": 0.0189
}

Semantic roles & 50–950 ramp

primary
#1B166C
secondary
#9CA23C
accent
#E93FDF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1B166C

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

Preview Lab → · Contrast checker → · Palette generator →

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