#1B155F#1B155F

#1B155F is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.4% C 0.124 H 277.2°. Best body text is #FFFFFF at 15.92:1 contrast (WCAG AA passes).

Color values

HEX#1B155F
RGBrgb(27, 21, 95)
HSLhsl(245, 64%, 23%)
HSVhsv(245, 78%, 37%)
CMYKcmyk(71.6%, 77.9%, 0%, 62.7%)
CIE-LABlab(13.20, 28.28, -42.76)
CIE-LCHlch(13.20, 51.26, 303.48°)
OKLaboklab(26.39% 0.0156 -0.1235)
OKLCHoklch(26.39% 0.125 277.2)
XYZxyz(2.7850, 1.5953, 10.9854)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B155F #595F15
analogous
#15345F #1B155F #40155F
triadic
#1B155F #5F1B15 #155F1B
tetradic
#1B155F #5F1534 #595F15 #155F40
square
#1B155F #5F1534 #595F15 #155F40
split-complementary
#1B155F #5F4015 #345F15
monochromatic
#070619 #0D0A2D #1B155F #292091 #372BC3

Accessibility & contrast

On white

15.92
#1B155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B155F
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B155F#FFFFFF#000000##FFFFFF
##1B155F1.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#001F5E
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #1b155f;
/* rgb */ color: rgb(27, 21, 95);
/* oklch */ color: oklch(26.4% 0.124 277.2);
Tailwind
colors: {
  custom: {
    50: '#63538d',
    500: '#1b155f',
    950: '#000000',
  },
}
SCSS
$custom: #1b155f;
$custom-light: #63538d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b155f",
  "rgb": {
    "r": 27,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 244.865,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.26392,
    "c": 0.1245,
    "h": 277.2
  },
  "luminance": 0.01596
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B155F

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

Preview Lab → · Contrast checker → · Palette generator →

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