#1B1168#1B1168

#1B1168 is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.9% C 0.141 H 276.4°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#1B1168
RGBrgb(27, 17, 104)
HSLhsl(247, 72%, 24%)
HSVhsv(247, 84%, 41%)
CMYKcmyk(74%, 83.7%, 0%, 59.2%)
CIE-LABlab(13.43, 33.76, -48.35)
CIE-LCHlch(13.43, 58.97, 304.92°)
OKLaboklab(26.86% 0.0156 -0.1398)
OKLCHoklch(26.86% 0.141 276.4)
XYZxyz(3.1503, 1.6331, 13.2432)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1168 #5E6811
analogous
#113268 #1B1168 #461168
triadic
#1B1168 #681B11 #11681B
tetradic
#1B1168 #681132 #5E6811 #116846
square
#1B1168 #681132 #5E6811 #116846
split-complementary
#1B1168 #684611 #326811
monochromatic
#07041A #0D0833 #1B1168 #291A9D #3622D1

Accessibility & contrast

On white

15.83
#1B1168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#1B1168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1168
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1168#FFFFFF#000000##FFFFFF
##1B11681.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00266A
Deuteranopia (green-blind)
#001F66
Tritanopia (blue-blind)
#002C3D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #1b1168;
/* rgb */ color: rgb(27, 17, 104);
/* oklch */ color: oklch(26.9% 0.141 276.4);
Tailwind
colors: {
  custom: {
    50: '#655294',
    500: '#1b1168',
    950: '#000000',
  },
}
SCSS
$custom: #1b1168;
$custom-light: #655294;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1168",
  "rgb": {
    "r": 27,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 246.897,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.26864,
    "c": 0.14063,
    "h": 276.4
  },
  "luminance": 0.01633
}

Semantic roles & 50–950 ramp

primary
#1B1168
secondary
#94A035
accent
#EF39DA
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #1B1168

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

Preview Lab → · Contrast checker → · Palette generator →

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