#1B1E8A#1B1E8A

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

Color values

HEX#1B1E8A
RGBrgb(27, 30, 138)
HSLhsl(238, 67%, 32%)
HSVhsv(238, 80%, 54%)
CMYKcmyk(80.4%, 78.3%, 0%, 45.9%)
CIE-LABlab(20.03, 38.13, -59.24)
CIE-LCHlch(20.03, 70.45, 302.77°)
OKLaboklab(32.68% 0.0022 -0.1716)
OKLCHoklch(32.68% 0.172 270.7)
XYZxyz(5.5022, 2.9959, 24.3281)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1E8A #8A871B
analogous
#1B568A #1B1E8A #4F1B8A
triadic
#1B1E8A #8A1B1E #1E8A1B
tetradic
#1B1E8A #8A1B56 #8A871B #1B8A4F
square
#1B1E8A #8A1B56 #8A871B #1B8A4F
split-complementary
#1B1E8A #8A4F1B #568A1B
monochromatic
#070824 #111357 #1B1E8A #2529BD #4549DB

Accessibility & contrast

On white

13.13
#1B1E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B1E8A
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1E8A#FFFFFF#000000##FFFFFF
##1B1E8A1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b1e8a;
/* rgb */ color: rgb(27, 30, 138);
/* oklch */ color: oklch(32.7% 0.172 270.7);
Tailwind
colors: {
  custom: {
    50: '#6d5bad',
    500: '#1b1e8a',
    950: '#000000',
  },
}
SCSS
$custom: #1b1e8a;
$custom-light: #6d5bad;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1e8a",
  "rgb": {
    "r": 27,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 238.378,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32681,
    "c": 0.17157,
    "h": 270.7
  },
  "luminance": 0.02997
}

Semantic roles & 50–950 ramp

primary
#1B1E8A
secondary
#BCB945
accent
#E63EEA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1B1E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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