#1B1B8B#1B1B8B

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

Color values

HEX#1B1B8B
RGBrgb(27, 27, 139)
HSLhsl(240, 67%, 33%)
HSVhsv(240, 81%, 55%)
CMYKcmyk(80.6%, 80.6%, 0%, 45.5%)
CIE-LABlab(19.56, 40.16, -60.65)
CIE-LCHlch(19.56, 72.74, 303.51°)
OKLaboklab(32.39% 0.003 -0.1756)
OKLCHoklch(32.39% 0.176 271)
XYZxyz(5.5025, 2.8803, 24.6870)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1B8B #8B8B1B
analogous
#1B538B #1B1B8B #531B8B
triadic
#1B1B8B #8B1B1B #1B8B1B
tetradic
#1B1B8B #8B1B53 #8B8B1B #1B8B53
square
#1B1B8B #8B1B53 #8B8B1B #1B8B53
split-complementary
#1B1B8B #8B531B #538B1B
monochromatic
#070725 #111158 #1B1B8B #2525BE #4545DB

Accessibility & contrast

On white

13.32
#1B1B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B1B8B
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1B8B#FFFFFF#000000##FFFFFF
##1B1B8B1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358E
Deuteranopia (green-blind)
#002A89
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1b1b8b;
/* rgb */ color: rgb(27, 27, 139);
/* oklch */ color: oklch(32.4% 0.176 271.0);
Tailwind
colors: {
  custom: {
    50: '#6e5aae',
    500: '#1b1b8b',
    950: '#000000',
  },
}
SCSS
$custom: #1b1b8b;
$custom-light: #6e5aae;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1b8b",
  "rgb": {
    "r": 27,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 240,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32386,
    "c": 0.17562,
    "h": 271
  },
  "luminance": 0.02881
}

Semantic roles & 50–950 ramp

primary
#1B1B8B
secondary
#BCBC45
accent
#EA3DEA
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #1B1B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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