#1B1789#1B1789

#1B1789 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.177 H 271.5°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#1B1789
RGBrgb(27, 23, 137)
HSLhsl(242, 71%, 31%)
HSVhsv(242, 83%, 54%)
CMYKcmyk(80.3%, 83.2%, 0%, 46.3%)
CIE-LABlab(18.59, 41.59, -61.00)
CIE-LCHlch(18.59, 73.83, 304.29°)
OKLaboklab(31.64% 0.0046 -0.1766)
OKLCHoklch(31.64% 0.177 271.5)
XYZxyz(5.2722, 2.6514, 23.8960)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1789 #858917
analogous
#174C89 #1B1789 #541789
triadic
#1B1789 #891B17 #17891B
tetradic
#1B1789 #89174C #858917 #178954
square
#1B1789 #89174C #858917 #178954
split-complementary
#1B1789 #895417 #4C8917
monochromatic
#060520 #110E55 #1B1789 #2520BD #423CDE

Accessibility & contrast

On white

13.72
#1B1789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1B1789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1789
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1789#FFFFFF#000000##FFFFFF
##1B17891.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338C
Deuteranopia (green-blind)
#002787
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1b1789;
/* rgb */ color: rgb(27, 23, 137);
/* oklch */ color: oklch(31.6% 0.177 271.5);
Tailwind
colors: {
  custom: {
    50: '#6e57ad',
    500: '#1b1789',
    950: '#000000',
  },
}
SCSS
$custom: #1b1789;
$custom-light: #6e57ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1789",
  "rgb": {
    "r": 27,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 242.105,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.31639,
    "c": 0.17661,
    "h": 271.5
  },
  "luminance": 0.02652
}

Semantic roles & 50–950 ramp

primary
#1B1789
secondary
#B8BD3F
accent
#EE3AE8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1B1789

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

Preview Lab → · Contrast checker → · Palette generator →

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