#1B158A#1B158A

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

Color values

HEX#1B158A
RGBrgb(27, 21, 138)
HSLhsl(243, 74%, 31%)
HSVhsv(243, 85%, 54%)
CMYKcmyk(80.4%, 84.8%, 0%, 45.9%)
CIE-LABlab(18.38, 42.90, -61.97)
CIE-LCHlch(18.38, 75.37, 304.69°)
OKLaboklab(31.53% 0.0049 -0.1793)
OKLCHoklch(31.53% 0.179 271.6)
XYZxyz(5.3061, 2.6037, 24.2628)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B158A #848A15
analogous
#15498A #1B158A #55158A
triadic
#1B158A #8A1B15 #158A1B
tetradic
#1B158A #8A1549 #848A15 #158A55
square
#1B158A #8A1549 #848A15 #158A55
split-complementary
#1B158A #8A5515 #498A15
monochromatic
#060520 #110D55 #1B158A #251DBF #4139E1

Accessibility & contrast

On white

13.81
#1B158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B158A
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B158A#FFFFFF#000000##FFFFFF
##1B158A1.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b158a;
/* rgb */ color: rgb(27, 21, 138);
/* oklch */ color: oklch(31.5% 0.179 271.6);
Tailwind
colors: {
  custom: {
    50: '#6e56ad',
    500: '#1b158a',
    950: '#000000',
  },
}
SCSS
$custom: #1b158a;
$custom-light: #6e56ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1b158a",
  "rgb": {
    "r": 27,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 243.077,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31531,
    "c": 0.1794,
    "h": 271.6
  },
  "luminance": 0.02604
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B158A

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

Preview Lab → · Contrast checker → · Palette generator →

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