#1B1C97#1B1C97

#1B1C97 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.189 H 270.1°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#1B1C97
RGBrgb(27, 28, 151)
HSLhsl(240, 70%, 35%)
HSVhsv(240, 82%, 59%)
CMYKcmyk(82.1%, 81.5%, 0%, 40.8%)
CIE-LABlab(21.20, 43.63, -65.38)
CIE-LCHlch(21.20, 78.60, 303.71°)
OKLaboklab(33.95% 0.0002 -0.1893)
OKLCHoklch(33.95% 0.189 270.1)
XYZxyz(6.4513, 3.2971, 29.5686)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1C97 #97961B
analogous
#1B5A97 #1B1C97 #581B97
triadic
#1B1C97 #971B1C #1C971B
tetradic
#1B1C97 #971B5A #97961B #1B9758
square
#1B1C97 #971B5A #97961B #1B9758
split-complementary
#1B1C97 #97581B #5A971B
monochromatic
#08092F #121263 #1B1C97 #2426CB #4D4EDF

Accessibility & contrast

On white

12.65
#1B1C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1B1C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1C97
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1C97#FFFFFF#000000##FFFFFF
##1B1C971.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00399A
Deuteranopia (green-blind)
#002C95
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1b1c97;
/* rgb */ color: rgb(27, 28, 151);
/* oklch */ color: oklch(34.0% 0.189 270.1);
Tailwind
colors: {
  custom: {
    50: '#715bb7',
    500: '#1b1c97',
    950: '#000000',
  },
}
SCSS
$custom: #1b1c97;
$custom-light: #715bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1c97",
  "rgb": {
    "r": 27,
    "g": 28,
    "b": 151
  },
  "hsl": {
    "h": 239.516,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.33953,
    "c": 0.18933,
    "h": 270.1
  },
  "luminance": 0.03298
}

Semantic roles & 50–950 ramp

primary
#1B1C97
secondary
#C1C14C
accent
#EB3BEC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1B1C97

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

Preview Lab → · Contrast checker → · Palette generator →

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