#1B155D#1B155D

#1B155D is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.2% C 0.122 H 277.6°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#1B155D
RGBrgb(27, 21, 93)
HSLhsl(245, 63%, 22%)
HSVhsv(245, 77%, 36%)
CMYKcmyk(71%, 77.4%, 0%, 63.5%)
CIE-LABlab(12.98, 27.56, -41.79)
CIE-LCHlch(12.98, 50.05, 303.40°)
OKLaboklab(26.17% 0.016 -0.1207)
OKLCHoklch(26.17% 0.122 277.6)
XYZxyz(2.6953, 1.5594, 10.5128)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B155D #575D15
analogous
#15335D #1B155D #3F155D
triadic
#1B155D #5D1B15 #155D1B
tetradic
#1B155D #5D1533 #575D15 #155D3F
square
#1B155D #5D1533 #575D15 #155D3F
split-complementary
#1B155D #5D3F15 #335D15
monochromatic
#070619 #0D0A2B #1B155D #29208F #382CC1

Accessibility & contrast

On white

16.01
#1B155D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B155D
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B155D#FFFFFF#000000##FFFFFF
##1B155D1.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#001E5C
Tritanopia (blue-blind)
#002937
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #1b155d;
/* rgb */ color: rgb(27, 21, 93);
/* oklch */ color: oklch(26.2% 0.122 277.6);
Tailwind
colors: {
  custom: {
    50: '#62538c',
    500: '#1b155d',
    950: '#000000',
  },
}
SCSS
$custom: #1b155d;
$custom-light: #62538c;
$custom-dark: #000000;
JSON
{
  "hex": "#1b155d",
  "rgb": {
    "r": 27,
    "g": 21,
    "b": 93
  },
  "hsl": {
    "h": 245,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26168,
    "c": 0.12173,
    "h": 277.6
  },
  "luminance": 0.0156
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B155D

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

Preview Lab → · Contrast checker → · Palette generator →

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