#1B167A#1B167A

#1B167A is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.159 H 273.1°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#1B167A
RGBrgb(27, 22, 122)
HSLhsl(243, 69%, 28%)
HSVhsv(243, 82%, 48%)
CMYKcmyk(77.9%, 82%, 0%, 52.2%)
CIE-LABlab(16.56, 37.13, -54.86)
CIE-LCHlch(16.56, 66.24, 304.09°)
OKLaboklab(29.69% 0.0086 -0.1587)
OKLCHoklch(29.69% 0.159 273.1)
XYZxyz(4.2506, 2.2115, 18.6114)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B167A #757A16
analogous
#16437A #1B167A #4D167A
triadic
#1B167A #7A1B16 #167A1B
tetradic
#1B167A #7A1643 #757A16 #167A4D
square
#1B167A #7A1643 #757A16 #167A4D
split-complementary
#1B167A #7A4D16 #437A16
monochromatic
#06051A #100D46 #1B167A #261FAE #3931DA

Accessibility & contrast

On white

14.56
#1B167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1B167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B167A
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B167A#FFFFFF#000000##FFFFFF
##1B167A1.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7D
Deuteranopia (green-blind)
#002478
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1b167a;
/* rgb */ color: rgb(27, 22, 122);
/* oklch */ color: oklch(29.7% 0.159 273.1);
Tailwind
colors: {
  custom: {
    50: '#6a56a2',
    500: '#1b167a',
    950: '#000000',
  },
}
SCSS
$custom: #1b167a;
$custom-light: #6a56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1b167a",
  "rgb": {
    "r": 27,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 243,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29689,
    "c": 0.15895,
    "h": 273.1
  },
  "luminance": 0.02212
}

Semantic roles & 50–950 ramp

primary
#1B167A
secondary
#A9AF3D
accent
#EC3CE3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1B167A

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

Preview Lab → · Contrast checker → · Palette generator →

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