#1B1889#1B1889

#1B1889 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.176 H 271.4°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#1B1889
RGBrgb(27, 24, 137)
HSLhsl(242, 70%, 32%)
HSVhsv(242, 82%, 54%)
CMYKcmyk(80.3%, 82.5%, 0%, 46.3%)
CIE-LABlab(18.76, 41.08, -60.71)
CIE-LCHlch(18.76, 73.30, 304.09°)
OKLaboklab(31.76% 0.0044 -0.1757)
OKLCHoklch(31.76% 0.176 271.4)
XYZxyz(5.2925, 2.6918, 23.9027)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1889 #868918
analogous
#184E89 #1B1889 #541889
triadic
#1B1889 #891B18 #18891B
tetradic
#1B1889 #89184E #868918 #188954
square
#1B1889 #89184E #868918 #188954
split-complementary
#1B1889 #895418 #4E8918
monochromatic
#060621 #110F55 #1B1889 #2521BD #423EDD

Accessibility & contrast

On white

13.65
#1B1889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1B1889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1889
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1889#FFFFFF#000000##FFFFFF
##1B18891.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338C
Deuteranopia (green-blind)
#002887
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1b1889;
/* rgb */ color: rgb(27, 24, 137);
/* oklch */ color: oklch(31.8% 0.176 271.4);
Tailwind
colors: {
  custom: {
    50: '#6d58ad',
    500: '#1b1889',
    950: '#000000',
  },
}
SCSS
$custom: #1b1889;
$custom-light: #6d58ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1889",
  "rgb": {
    "r": 27,
    "g": 24,
    "b": 137
  },
  "hsl": {
    "h": 241.593,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31761,
    "c": 0.17578,
    "h": 271.4
  },
  "luminance": 0.02692
}

Semantic roles & 50–950 ramp

primary
#1B1889
secondary
#B9BD40
accent
#ED3BE8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1B1889

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

Preview Lab → · Contrast checker → · Palette generator →

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