#1B1B8A#1B1B8A

#1B1B8A is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.174 H 271.1°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#1B1B8A
RGBrgb(27, 27, 138)
HSLhsl(240, 67%, 32%)
HSVhsv(240, 80%, 54%)
CMYKcmyk(80.4%, 80.4%, 0%, 45.9%)
CIE-LABlab(19.44, 39.82, -60.22)
CIE-LCHlch(19.44, 72.20, 303.47°)
OKLaboklab(32.27% 0.0032 -0.1744)
OKLCHoklch(32.27% 0.174 271.1)
XYZxyz(5.4298, 2.8512, 24.3040)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1B8A #8A8A1B
analogous
#1B538A #1B1B8A #531B8A
triadic
#1B1B8A #8A1B1B #1B8A1B
tetradic
#1B1B8A #8A1B53 #8A8A1B #1B8A53
square
#1B1B8A #8A1B53 #8A8A1B #1B8A53
split-complementary
#1B1B8A #8A531B #538A1B
monochromatic
#070724 #111157 #1B1B8A #2525BD #4545DB

Accessibility & contrast

On white

13.37
#1B1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1B1B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1B8A
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1B8A#FFFFFF#000000##FFFFFF
##1B1B8A1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358D
Deuteranopia (green-blind)
#002988
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1b1b8a;
/* rgb */ color: rgb(27, 27, 138);
/* oklch */ color: oklch(32.3% 0.174 271.1);
Tailwind
colors: {
  custom: {
    50: '#6d5aad',
    500: '#1b1b8a',
    950: '#000000',
  },
}
SCSS
$custom: #1b1b8a;
$custom-light: #6d5aad;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1b8a",
  "rgb": {
    "r": 27,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 240,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32266,
    "c": 0.17439,
    "h": 271.1
  },
  "luminance": 0.02852
}

Semantic roles & 50–950 ramp

primary
#1B1B8A
secondary
#BCBC45
accent
#EA3EEA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1B1B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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