#1B1B97#1B1B97

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

Color values

HEX#1B1B97
RGBrgb(27, 27, 151)
HSLhsl(240, 70%, 35%)
HSVhsv(240, 82%, 59%)
CMYKcmyk(82.1%, 82.1%, 0%, 40.8%)
CIE-LABlab(21.02, 44.14, -65.68)
CIE-LCHlch(21.02, 79.13, 303.90°)
OKLaboklab(33.83% 0.0005 -0.1902)
OKLCHoklch(33.83% 0.19 270.1)
XYZxyz(6.4279, 3.2505, 29.5608)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1B97 #97971B
analogous
#1B5997 #1B1B97 #591B97
triadic
#1B1B97 #971B1B #1B971B
tetradic
#1B1B97 #971B59 #97971B #1B9759
square
#1B1B97 #971B59 #97971B #1B9759
split-complementary
#1B1B97 #97591B #59971B
monochromatic
#08082F #121263 #1B1B97 #2424CB #4D4DDF

Accessibility & contrast

On white

12.73
#1B1B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1B1B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1B97
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1B97#FFFFFF#000000##FFFFFF
##1B1B971.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b1b97;
/* rgb */ color: rgb(27, 27, 151);
/* oklch */ color: oklch(33.8% 0.190 270.1);
Tailwind
colors: {
  custom: {
    50: '#715bb7',
    500: '#1b1b97',
    950: '#000000',
  },
}
SCSS
$custom: #1b1b97;
$custom-light: #715bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1b97",
  "rgb": {
    "r": 27,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 240,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.3383,
    "c": 0.19016,
    "h": 270.1
  },
  "luminance": 0.03251
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B1B97

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

Preview Lab → · Contrast checker → · Palette generator →

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