#1B1689#1B1689

#1B1689 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.5% C 0.177 H 271.6°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#1B1689
RGBrgb(27, 22, 137)
HSLhsl(243, 72%, 31%)
HSVhsv(243, 84%, 54%)
CMYKcmyk(80.3%, 83.9%, 0%, 46.3%)
CIE-LABlab(18.42, 42.09, -61.28)
CIE-LCHlch(18.42, 74.35, 304.48°)
OKLaboklab(31.52% 0.0049 -0.1773)
OKLCHoklch(31.52% 0.177 271.6)
XYZxyz(5.2527, 2.6124, 23.8895)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1689 #848916
analogous
#164A89 #1B1689 #541689
triadic
#1B1689 #891B16 #16891B
tetradic
#1B1689 #89164A #848916 #168954
square
#1B1689 #89164A #848916 #168954
split-complementary
#1B1689 #895416 #4A8916
monochromatic
#060520 #110E54 #1B1689 #251EBE #413ADF

Accessibility & contrast

On white

13.79
#1B1689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1B1689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1689
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1689#FFFFFF#000000##FFFFFF
##1B16891.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b1689;
/* rgb */ color: rgb(27, 22, 137);
/* oklch */ color: oklch(31.5% 0.177 271.6);
Tailwind
colors: {
  custom: {
    50: '#6e57ad',
    500: '#1b1689',
    950: '#000000',
  },
}
SCSS
$custom: #1b1689;
$custom-light: #6e57ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1689",
  "rgb": {
    "r": 27,
    "g": 22,
    "b": 137
  },
  "hsl": {
    "h": 242.609,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31521,
    "c": 0.17742,
    "h": 271.6
  },
  "luminance": 0.02613
}

Semantic roles & 50–950 ramp

primary
#1B1689
secondary
#B7BD3E
accent
#EF39E7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #1B1689

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

Preview Lab → · Contrast checker → · Palette generator →

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