#1B1B8E#1B1B8E

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

Color values

HEX#1B1B8E
RGBrgb(27, 27, 142)
HSLhsl(240, 68%, 33%)
HSVhsv(240, 81%, 56%)
CMYKcmyk(81%, 81%, 0%, 44.3%)
CIE-LABlab(19.92, 41.17, -61.92)
CIE-LCHlch(19.92, 74.36, 303.62°)
OKLaboklab(32.74% 0.0024 -0.1793)
OKLCHoklch(32.74% 0.179 270.8)
XYZxyz(5.7248, 2.9692, 25.8573)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1B8E #8E8E1B
analogous
#1B548E #1B1B8E #541B8E
triadic
#1B1B8E #8E1B1B #1B8E1B
tetradic
#1B1B8E #8E1B54 #8E8E1B #1B8E54
square
#1B1B8E #8E1B54 #8E8E1B #1B8E54
split-complementary
#1B1B8E #8E541B #548E1B
monochromatic
#070727 #11115B #1B1B8E #2525C1 #4747DC

Accessibility & contrast

On white

13.17
#1B1B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1B1B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1B8E
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1B8E#FFFFFF#000000##FFFFFF
##1B1B8E1.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003691
Deuteranopia (green-blind)
#002A8C
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1b1b8e;
/* rgb */ color: rgb(27, 27, 142);
/* oklch */ color: oklch(32.7% 0.179 270.8);
Tailwind
colors: {
  custom: {
    50: '#6e5ab0',
    500: '#1b1b8e',
    950: '#000000',
  },
}
SCSS
$custom: #1b1b8e;
$custom-light: #6e5ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1b8e",
  "rgb": {
    "r": 27,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 240,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.32744,
    "c": 0.1793,
    "h": 270.8
  },
  "luminance": 0.0297
}

Semantic roles & 50–950 ramp

primary
#1B1B8E
secondary
#BEBE47
accent
#EB3DEB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1B1B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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