#1B168D#1B168D

#1B168D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.182 H 271.2°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#1B168D
RGBrgb(27, 22, 141)
HSLhsl(243, 73%, 32%)
HSVhsv(243, 84%, 55%)
CMYKcmyk(80.9%, 84.4%, 0%, 44.7%)
CIE-LABlab(18.93, 43.38, -62.95)
CIE-LCHlch(18.93, 76.45, 304.57°)
OKLaboklab(32.02% 0.0039 -0.1822)
OKLCHoklch(32.02% 0.182 271.2)
XYZxyz(5.5450, 2.7293, 25.4287)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B168D #888D16
analogous
#164D8D #1B168D #57168D
triadic
#1B168D #8D1B16 #168D1B
tetradic
#1B168D #8D164D #888D16 #168D57
square
#1B168D #8D164D #888D16 #168D57
split-complementary
#1B168D #8D5716 #4D8D16
monochromatic
#070523 #110E58 #1B168D #251EC2 #443DE1

Accessibility & contrast

On white

13.58
#1B168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1B168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B168D
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B168D#FFFFFF#000000##FFFFFF
##1B168D1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003490
Deuteranopia (green-blind)
#00288B
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1b168d;
/* rgb */ color: rgb(27, 22, 141);
/* oklch */ color: oklch(32.0% 0.182 271.2);
Tailwind
colors: {
  custom: {
    50: '#6f57b0',
    500: '#1b168d',
    950: '#000000',
  },
}
SCSS
$custom: #1b168d;
$custom-light: #6f57b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b168d",
  "rgb": {
    "r": 27,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 242.521,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32016,
    "c": 0.18221,
    "h": 271.2
  },
  "luminance": 0.0273
}

Semantic roles & 50–950 ramp

primary
#1B168D
secondary
#BBC13E
accent
#F038E8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1B168D

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

Preview Lab → · Contrast checker → · Palette generator →

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