#1B155E#1B155E

#1B155E is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.3% C 0.123 H 277.4°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#1B155E
RGBrgb(27, 21, 94)
HSLhsl(245, 63%, 23%)
HSVhsv(245, 78%, 37%)
CMYKcmyk(71.3%, 77.7%, 0%, 63.1%)
CIE-LABlab(13.09, 27.92, -42.27)
CIE-LCHlch(13.09, 50.66, 303.44°)
OKLaboklab(26.28% 0.0158 -0.1221)
OKLCHoklch(26.28% 0.123 277.4)
XYZxyz(2.7399, 1.5773, 10.7476)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B155E #585E15
analogous
#15335E #1B155E #40155E
triadic
#1B155E #5E1B15 #155E1B
tetradic
#1B155E #5E1533 #585E15 #155E40
square
#1B155E #5E1533 #585E15 #155E40
split-complementary
#1B155E #5E4015 #335E15
monochromatic
#070619 #0D0A2C #1B155E #292090 #382BC2

Accessibility & contrast

On white

15.96
#1B155E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#1B155E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B155E
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B155E#FFFFFF#000000##FFFFFF
##1B155E1.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002560
Deuteranopia (green-blind)
#001F5D
Tritanopia (blue-blind)
#002938
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #1b155e;
/* rgb */ color: rgb(27, 21, 94);
/* oklch */ color: oklch(26.3% 0.123 277.4);
Tailwind
colors: {
  custom: {
    50: '#62538c',
    500: '#1b155e',
    950: '#000000',
  },
}
SCSS
$custom: #1b155e;
$custom-light: #62538c;
$custom-dark: #000000;
JSON
{
  "hex": "#1b155e",
  "rgb": {
    "r": 27,
    "g": 21,
    "b": 94
  },
  "hsl": {
    "h": 244.932,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.2628,
    "c": 0.12312,
    "h": 277.4
  },
  "luminance": 0.01577
}

Semantic roles & 50–950 ramp

primary
#1B155E
secondary
#8E9539
accent
#E741D9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1B155E

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

Preview Lab → · Contrast checker → · Palette generator →

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