#1B168E#1B168E

#1B168E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.183 H 271.2°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#1B168E
RGBrgb(27, 22, 142)
HSLhsl(243, 73%, 32%)
HSVhsv(243, 85%, 56%)
CMYKcmyk(81%, 84.5%, 0%, 44.3%)
CIE-LABlab(19.05, 43.70, -63.36)
CIE-LCHlch(19.05, 76.97, 304.59°)
OKLaboklab(32.14% 0.0037 -0.1834)
OKLCHoklch(32.14% 0.183 271.2)
XYZxyz(5.6197, 2.7592, 25.8223)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B168E #898E16
analogous
#164D8E #1B168E #57168E
triadic
#1B168E #8E1B16 #168E1B
tetradic
#1B168E #8E164D #898E16 #168E57
square
#1B168E #8E164D #898E16 #168E57
split-complementary
#1B168E #8E5716 #4D8E16
monochromatic
#070624 #110E59 #1B168E #251EC3 #443DE1

Accessibility & contrast

On white

13.53
#1B168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B168E
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B168E#FFFFFF#000000##FFFFFF
##1B168E1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#00288C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1b168e;
/* rgb */ color: rgb(27, 22, 142);
/* oklch */ color: oklch(32.1% 0.183 271.2);
Tailwind
colors: {
  custom: {
    50: '#6f57b0',
    500: '#1b168e',
    950: '#000000',
  },
}
SCSS
$custom: #1b168e;
$custom-light: #6f57b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b168e",
  "rgb": {
    "r": 27,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 242.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32141,
    "c": 0.1834,
    "h": 271.2
  },
  "luminance": 0.0276
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B168E

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

Preview Lab → · Contrast checker → · Palette generator →

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