#1B155B#1B155B

#1B155B is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.9% C 0.119 H 277.9°. Best body text is #FFFFFF at 16.09:1 contrast (WCAG AA passes).

Color values

HEX#1B155B
RGBrgb(27, 21, 91)
HSLhsl(245, 63%, 22%)
HSVhsv(245, 77%, 36%)
CMYKcmyk(70.3%, 76.9%, 0%, 64.3%)
CIE-LABlab(12.76, 26.83, -40.80)
CIE-LCHlch(12.76, 48.83, 303.33°)
OKLaboklab(25.95% 0.0165 -0.1178)
OKLCHoklch(25.95% 0.119 277.9)
XYZxyz(2.6079, 1.5245, 10.0523)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B155B #555B15
analogous
#15325B #1B155B #3E155B
triadic
#1B155B #5B1B15 #155B1B
tetradic
#1B155B #5B1532 #555B15 #155B3E
square
#1B155B #5B1532 #555B15 #155B3E
split-complementary
#1B155B #5B3E15 #325B15
monochromatic
#070619 #0C0A29 #1B155B #2A208D #392CBE

Accessibility & contrast

On white

16.09
#1B155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#1B155B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B155B
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B155B#FFFFFF#000000##FFFFFF
##1B155B1.0016.091.3116.09
#FFFFFF16.091.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245D
Deuteranopia (green-blind)
#001E5A
Tritanopia (blue-blind)
#002836
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #1b155b;
/* rgb */ color: rgb(27, 21, 91);
/* oklch */ color: oklch(25.9% 0.119 277.9);
Tailwind
colors: {
  custom: {
    50: '#62538a',
    500: '#1b155b',
    950: '#000000',
  },
}
SCSS
$custom: #1b155b;
$custom-light: #62538a;
$custom-dark: #000000;
JSON
{
  "hex": "#1b155b",
  "rgb": {
    "r": 27,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 245.143,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.25947,
    "c": 0.11894,
    "h": 277.9
  },
  "luminance": 0.01525
}

Semantic roles & 50–950 ramp

primary
#1B155B
secondary
#8B9239
accent
#E642D8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1B155B

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

Preview Lab → · Contrast checker → · Palette generator →

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