#1B166F#1B166F

#1B166F is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.4% C 0.145 H 274.5°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#1B166F
RGBrgb(27, 22, 111)
HSLhsl(243, 67%, 26%)
HSVhsv(243, 80%, 44%)
CMYKcmyk(75.7%, 80.2%, 0%, 56.5%)
CIE-LABlab(15.24, 33.35, -49.93)
CIE-LCHlch(15.24, 60.05, 303.74°)
OKLaboklab(28.38% 0.0113 -0.1444)
OKLCHoklch(28.38% 0.145 274.5)
XYZxyz(3.6072, 1.9542, 15.2229)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B166F #6A6F16
analogous
#163D6F #1B166F #47166F
triadic
#1B166F #6F1B16 #166F1B
tetradic
#1B166F #6F163D #6A6F16 #166F47
square
#1B166F #6F163D #6A6F16 #166F47
split-complementary
#1B166F #6F4716 #3D6F16
monochromatic
#06051A #0F0C3C #1B166F #2720A2 #342BD5

Accessibility & contrast

On white

15.10
#1B166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B166F
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B166F#FFFFFF#000000##FFFFFF
##1B166F1.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00226D
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1b166f;
/* rgb */ color: rgb(27, 22, 111);
/* oklch */ color: oklch(28.4% 0.145 274.5);
Tailwind
colors: {
  custom: {
    50: '#675599',
    500: '#1b166f',
    950: '#000000',
  },
}
SCSS
$custom: #1b166f;
$custom-light: #675599;
$custom-dark: #000000;
JSON
{
  "hex": "#1b166f",
  "rgb": {
    "r": 27,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 243.371,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28381,
    "c": 0.14486,
    "h": 274.5
  },
  "luminance": 0.01955
}

Semantic roles & 50–950 ramp

primary
#1B166F
secondary
#9FA53C
accent
#EA3EE0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1B166F

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

Preview Lab → · Contrast checker → · Palette generator →

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