#1B167E#1B167E

#1B167E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.164 H 272.7°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#1B167E
RGBrgb(27, 22, 126)
HSLhsl(243, 70%, 29%)
HSVhsv(243, 83%, 49%)
CMYKcmyk(78.6%, 82.5%, 0%, 50.6%)
CIE-LABlab(17.05, 38.47, -56.60)
CIE-LCHlch(17.05, 68.44, 304.21°)
OKLaboklab(30.17% 0.0076 -0.1638)
OKLCHoklch(30.17% 0.164 272.7)
XYZxyz(4.5035, 2.3127, 19.9437)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B167E #797E16
analogous
#16457E #1B167E #4F167E
triadic
#1B167E #7E1B16 #167E1B
tetradic
#1B167E #7E1645 #797E16 #167E4F
square
#1B167E #7E1645 #797E16 #167E4F
split-complementary
#1B167E #7E4F16 #457E16
monochromatic
#06051A #100D4A #1B167E #261FB2 #3B33DB

Accessibility & contrast

On white

14.36
#1B167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1B167E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B167E
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B167E#FFFFFF#000000##FFFFFF
##1B167E1.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1b167e;
/* rgb */ color: rgb(27, 22, 126);
/* oklch */ color: oklch(30.2% 0.164 272.7);
Tailwind
colors: {
  custom: {
    50: '#6b56a5',
    500: '#1b167e',
    950: '#000000',
  },
}
SCSS
$custom: #1b167e;
$custom-light: #6b56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b167e",
  "rgb": {
    "r": 27,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 242.885,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30173,
    "c": 0.16396,
    "h": 272.7
  },
  "luminance": 0.02313
}

Semantic roles & 50–950 ramp

primary
#1B167E
secondary
#ADB33D
accent
#ED3BE4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1B167E

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

Preview Lab → · Contrast checker → · Palette generator →

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