#1B1D8B#1B1D8B

#1B1D8B is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.174 H 270.8°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#1B1D8B
RGBrgb(27, 29, 139)
HSLhsl(239, 67%, 33%)
HSVhsv(239, 81%, 55%)
CMYKcmyk(80.6%, 79.1%, 0%, 45.5%)
CIE-LABlab(19.94, 39.05, -60.01)
CIE-LCHlch(19.94, 71.59, 303.05°)
OKLaboklab(32.66% 0.0024 -0.1738)
OKLCHoklch(32.66% 0.174 270.8)
XYZxyz(5.5500, 2.9752, 24.7029)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1D8B #8B891B
analogous
#1B558B #1B1D8B #511B8B
triadic
#1B1D8B #8B1B1D #1D8B1B
tetradic
#1B1D8B #8B1B55 #8B891B #1B8B51
square
#1B1D8B #8B1B55 #8B891B #1B8B51
split-complementary
#1B1D8B #8B511B #558B1B
monochromatic
#070825 #111258 #1B1D8B #2528BE #4548DB

Accessibility & contrast

On white

13.16
#1B1D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#1B1D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1D8B
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1D8B#FFFFFF#000000##FFFFFF
##1B1D8B1.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002A89
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1b1d8b;
/* rgb */ color: rgb(27, 29, 139);
/* oklch */ color: oklch(32.7% 0.174 270.8);
Tailwind
colors: {
  custom: {
    50: '#6d5bae',
    500: '#1b1d8b',
    950: '#000000',
  },
}
SCSS
$custom: #1b1d8b;
$custom-light: #6d5bae;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1d8b",
  "rgb": {
    "r": 27,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 238.929,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32657,
    "c": 0.17379,
    "h": 270.8
  },
  "luminance": 0.02976
}

Semantic roles & 50–950 ramp

primary
#1B1D8B
secondary
#BCBA45
accent
#E73DEA
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F

Preview Lab

Preview with #1B1D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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