#1B1D88#1B1D88

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

Color values

HEX#1B1D88
RGBrgb(27, 29, 136)
HSLhsl(239, 67%, 32%)
HSVhsv(239, 80%, 53%)
CMYKcmyk(80.1%, 78.7%, 0%, 46.7%)
CIE-LABlab(19.59, 38.01, -58.71)
CIE-LCHlch(19.59, 69.94, 302.92°)
OKLaboklab(32.31% 0.003 -0.17)
OKLCHoklch(32.31% 0.17 271)
XYZxyz(5.3338, 2.8887, 23.5642)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1D88 #88861B
analogous
#1B5488 #1B1D88 #501B88
triadic
#1B1D88 #881B1D #1D881B
tetradic
#1B1D88 #881B54 #88861B #1B8850
square
#1B1D88 #881B54 #88861B #1B8850
split-complementary
#1B1D88 #88501B #54881B
monochromatic
#070722 #111255 #1B1D88 #2528BB #4446DA

Accessibility & contrast

On white

13.31
#1B1D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1B1D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1D88
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1D88#FFFFFF#000000##FFFFFF
##1B1D881.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358B
Deuteranopia (green-blind)
#002A86
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1b1d88;
/* rgb */ color: rgb(27, 29, 136);
/* oklch */ color: oklch(32.3% 0.170 271.0);
Tailwind
colors: {
  custom: {
    50: '#6d5bac',
    500: '#1b1d88',
    950: '#000000',
  },
}
SCSS
$custom: #1b1d88;
$custom-light: #6d5bac;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1d88",
  "rgb": {
    "r": 27,
    "g": 29,
    "b": 136
  },
  "hsl": {
    "h": 238.899,
    "s": 66.871,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32306,
    "c": 0.17003,
    "h": 271
  },
  "luminance": 0.02889
}

Semantic roles & 50–950 ramp

primary
#1B1D88
secondary
#BBB944
accent
#E73EEA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1B1D88

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

Preview Lab → · Contrast checker → · Palette generator →

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