#1B155A#1B155A

#1B155A is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.8% C 0.118 H 278.1°. Best body text is #FFFFFF at 16.13:1 contrast (WCAG AA passes).

Color values

HEX#1B155A
RGBrgb(27, 21, 90)
HSLhsl(245, 62%, 22%)
HSVhsv(245, 77%, 35%)
CMYKcmyk(70%, 76.7%, 0%, 64.7%)
CIE-LABlab(12.65, 26.46, -40.31)
CIE-LCHlch(12.65, 48.22, 303.29°)
OKLaboklab(25.84% 0.0167 -0.1163)
OKLCHoklch(25.84% 0.118 278.1)
XYZxyz(2.5650, 1.5073, 9.8266)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B155A #545A15
analogous
#15325A #1B155A #3E155A
triadic
#1B155A #5A1B15 #155A1B
tetradic
#1B155A #5A1532 #545A15 #155A3E
square
#1B155A #5A1532 #545A15 #155A3E
split-complementary
#1B155A #5A3E15 #325A15
monochromatic
#070619 #0C0928 #1B155A #2A218C #392CBD

Accessibility & contrast

On white

16.13
#1B155A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#1B155A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B155A
16.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B155A#FFFFFF#000000##FFFFFF
##1B155A1.0016.131.3016.13
#FFFFFF16.131.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b155a;
/* rgb */ color: rgb(27, 21, 90);
/* oklch */ color: oklch(25.8% 0.118 278.1);
Tailwind
colors: {
  custom: {
    50: '#615389',
    500: '#1b155a',
    950: '#000000',
  },
}
SCSS
$custom: #1b155a;
$custom-light: #615389;
$custom-dark: #000000;
JSON
{
  "hex": "#1b155a",
  "rgb": {
    "r": 27,
    "g": 21,
    "b": 90
  },
  "hsl": {
    "h": 245.217,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.25837,
    "c": 0.11754,
    "h": 278.1
  },
  "luminance": 0.01508
}

Semantic roles & 50–950 ramp

primary
#1B155A
secondary
#8A9239
accent
#E543D7
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1B155A

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

Preview Lab → · Contrast checker → · Palette generator →

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