#1B167B#1B167B

#1B167B is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.160 H 273.0°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#1B167B
RGBrgb(27, 22, 123)
HSLhsl(243, 70%, 28%)
HSVhsv(243, 82%, 48%)
CMYKcmyk(78%, 82.1%, 0%, 51.8%)
CIE-LABlab(16.68, 37.47, -55.30)
CIE-LCHlch(16.68, 66.79, 304.12°)
OKLaboklab(29.81% 0.0084 -0.16)
OKLCHoklch(29.81% 0.16 273)
XYZxyz(4.3129, 2.2364, 18.9394)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B167B #767B16
analogous
#16437B #1B167B #4D167B
triadic
#1B167B #7B1B16 #167B1B
tetradic
#1B167B #7B1643 #767B16 #167B4D
square
#1B167B #7B1643 #767B16 #167B4D
split-complementary
#1B167B #7B4D16 #437B16
monochromatic
#06051A #100D47 #1B167B #261FAF #3A31DA

Accessibility & contrast

On white

14.51
#1B167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1B167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B167B
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B167B#FFFFFF#000000##FFFFFF
##1B167B1.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002479
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1b167b;
/* rgb */ color: rgb(27, 22, 123);
/* oklch */ color: oklch(29.8% 0.160 273.0);
Tailwind
colors: {
  custom: {
    50: '#6a56a2',
    500: '#1b167b',
    950: '#000000',
  },
}
SCSS
$custom: #1b167b;
$custom-light: #6a56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1b167b",
  "rgb": {
    "r": 27,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 242.97,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.2981,
    "c": 0.16021,
    "h": 273
  },
  "luminance": 0.02237
}

Semantic roles & 50–950 ramp

primary
#1B167B
secondary
#AAB03D
accent
#EC3BE4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1B167B

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

Preview Lab → · Contrast checker → · Palette generator →

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