#1B1589#1B1589

#1B1589 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.178 H 271.7°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#1B1589
RGBrgb(27, 21, 137)
HSLhsl(243, 73%, 31%)
HSVhsv(243, 85%, 54%)
CMYKcmyk(80.3%, 84.7%, 0%, 46.3%)
CIE-LABlab(18.25, 42.58, -61.56)
CIE-LCHlch(18.25, 74.85, 304.67°)
OKLaboklab(31.41% 0.0052 -0.1781)
OKLCHoklch(31.41% 0.178 271.7)
XYZxyz(5.2340, 2.5749, 23.8832)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1589 #838915
analogous
#154989 #1B1589 #551589
triadic
#1B1589 #891B15 #15891B
tetradic
#1B1589 #891549 #838915 #158955
square
#1B1589 #891549 #838915 #158955
split-complementary
#1B1589 #895515 #498915
monochromatic
#06051F #110D54 #1B1589 #251DBE #4138E0

Accessibility & contrast

On white

13.86
#1B1589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B1589
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1589#FFFFFF#000000##FFFFFF
##1B15891.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.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: #1b1589;
/* rgb */ color: rgb(27, 21, 137);
/* oklch */ color: oklch(31.4% 0.178 271.7);
Tailwind
colors: {
  custom: {
    50: '#6e56ad',
    500: '#1b1589',
    950: '#000000',
  },
}
SCSS
$custom: #1b1589;
$custom-light: #6e56ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1589",
  "rgb": {
    "r": 27,
    "g": 21,
    "b": 137
  },
  "hsl": {
    "h": 243.103,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31406,
    "c": 0.17821,
    "h": 271.7
  },
  "luminance": 0.02575
}

Semantic roles & 50–950 ramp

primary
#1B1589
secondary
#B6BD3D
accent
#F038E7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #1B1589

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

Preview Lab → · Contrast checker → · Palette generator →

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