#1B158D#1B158D

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

Color values

HEX#1B158D
RGBrgb(27, 21, 141)
HSLhsl(243, 74%, 32%)
HSVhsv(243, 85%, 55%)
CMYKcmyk(80.9%, 85.1%, 0%, 44.7%)
CIE-LABlab(18.76, 43.85, -63.22)
CIE-LCHlch(18.76, 76.94, 304.75°)
OKLaboklab(31.91% 0.0042 -0.1829)
OKLCHoklch(31.91% 0.183 271.3)
XYZxyz(5.5263, 2.6918, 25.4225)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B158D #878D15
analogous
#154B8D #1B158D #57158D
triadic
#1B158D #8D1B15 #158D1B
tetradic
#1B158D #8D154B #878D15 #158D57
square
#1B158D #8D154B #878D15 #158D57
split-complementary
#1B158D #8D5715 #4B8D15
monochromatic
#070522 #110D58 #1B158D #251DC2 #433BE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1B158D#FFFFFF#000000##FFFFFF
##1B158D1.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)
#003390
Deuteranopia (green-blind)
#00278B
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1b158d;
/* rgb */ color: rgb(27, 21, 141);
/* oklch */ color: oklch(31.9% 0.183 271.3);
Tailwind
colors: {
  custom: {
    50: '#6f57b0',
    500: '#1b158d',
    950: '#000000',
  },
}
SCSS
$custom: #1b158d;
$custom-light: #6f57b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b158d",
  "rgb": {
    "r": 27,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 243,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.31905,
    "c": 0.18297,
    "h": 271.3
  },
  "luminance": 0.02692
}

Semantic roles & 50–950 ramp

primary
#1B158D
secondary
#BAC13D
accent
#F137E7
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1B158D

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

Preview Lab → · Contrast checker → · Palette generator →

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