#1B1A97#1B1A97

#1B1A97 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.7% C 0.191 H 270.2°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#1B1A97
RGBrgb(27, 26, 151)
HSLhsl(240, 71%, 35%)
HSVhsv(240, 83%, 59%)
CMYKcmyk(82.1%, 82.8%, 0%, 40.8%)
CIE-LABlab(20.85, 44.64, -65.96)
CIE-LCHlch(20.85, 79.65, 304.09°)
OKLaboklab(33.71% 0.0007 -0.191)
OKLCHoklch(33.71% 0.191 270.2)
XYZxyz(6.4054, 3.2054, 29.5533)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1A97 #96971A
analogous
#1A5897 #1B1A97 #5A1A97
triadic
#1B1A97 #971B1A #1A971B
tetradic
#1B1A97 #971A58 #96971A #1A975A
square
#1B1A97 #971A58 #96971A #1A975A
split-complementary
#1B1A97 #975A1A #58971A
monochromatic
#08082F #121163 #1B1A97 #2423CB #4D4BE0

Accessibility & contrast

On white

12.80
#1B1A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1B1A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1A97
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1A97#FFFFFF#000000##FFFFFF
##1B1A971.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00389A
Deuteranopia (green-blind)
#002C95
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1b1a97;
/* rgb */ color: rgb(27, 26, 151);
/* oklch */ color: oklch(33.7% 0.191 270.2);
Tailwind
colors: {
  custom: {
    50: '#715ab7',
    500: '#1b1a97',
    950: '#000000',
  },
}
SCSS
$custom: #1b1a97;
$custom-light: #715ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1a97",
  "rgb": {
    "r": 27,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 240.48,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3371,
    "c": 0.19096,
    "h": 270.2
  },
  "luminance": 0.03206
}

Semantic roles & 50–950 ramp

primary
#1B1A97
secondary
#C1C24B
accent
#ED3AEC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1B1A97

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

Preview Lab → · Contrast checker → · Palette generator →

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