#1B167D#1B167D

#1B167D is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.163 H 272.8°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#1B167D
RGBrgb(27, 22, 125)
HSLhsl(243, 70%, 29%)
HSVhsv(243, 82%, 49%)
CMYKcmyk(78.4%, 82.4%, 0%, 51%)
CIE-LABlab(16.93, 38.14, -56.17)
CIE-LCHlch(16.93, 67.89, 304.18°)
OKLaboklab(30.05% 0.0079 -0.1625)
OKLCHoklch(30.05% 0.163 272.8)
XYZxyz(4.4393, 2.2870, 19.6055)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B167D #787D16
analogous
#16457D #1B167D #4F167D
triadic
#1B167D #7D1B16 #167D1B
tetradic
#1B167D #7D1645 #787D16 #167D4F
square
#1B167D #7D1645 #787D16 #167D4F
split-complementary
#1B167D #7D4F16 #457D16
monochromatic
#06051A #100D49 #1B167D #261FB1 #3B32DB

Accessibility & contrast

On white

14.41
#1B167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B167D
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B167D#FFFFFF#000000##FFFFFF
##1B167D1.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b167d;
/* rgb */ color: rgb(27, 22, 125);
/* oklch */ color: oklch(30.1% 0.163 272.8);
Tailwind
colors: {
  custom: {
    50: '#6a56a4',
    500: '#1b167d',
    950: '#000000',
  },
}
SCSS
$custom: #1b167d;
$custom-light: #6a56a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b167d",
  "rgb": {
    "r": 27,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 242.913,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30052,
    "c": 0.16271,
    "h": 272.8
  },
  "luminance": 0.02287
}

Semantic roles & 50–950 ramp

primary
#1B167D
secondary
#ACB23D
accent
#ED3BE4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1B167D

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

Preview Lab → · Contrast checker → · Palette generator →

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