#1B115B#1B115B

#1B115B is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.3% C 0.124 H 279.0°. Best body text is #FFFFFF at 16.43:1 contrast (WCAG AA passes).

Color values

HEX#1B115B
RGBrgb(27, 17, 91)
HSLhsl(248, 69%, 21%)
HSVhsv(248, 81%, 36%)
CMYKcmyk(70.3%, 81.3%, 0%, 64.3%)
CIE-LABlab(11.88, 29.30, -42.25)
CIE-LCHlch(11.88, 51.41, 304.74°)
OKLaboklab(25.32% 0.0193 -0.122)
OKLCHoklch(25.32% 0.124 279)
XYZxyz(2.5402, 1.3890, 10.0297)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B115B #515B11
analogous
#112C5B #1B115B #40115B
triadic
#1B115B #5B1B11 #115B1B
tetradic
#1B115B #5B112C #515B11 #115B40
square
#1B115B #5B112C #515B11 #115B40
split-complementary
#1B115B #5B4011 #2C5B11
monochromatic
#08051A #0C0727 #1B115B #2A1B8F #3A24C2

Accessibility & contrast

On white

16.43
#1B115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#1B115B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B115B
16.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B115B#FFFFFF#000000##FFFFFF
##1B115B1.0016.431.2816.43
#FFFFFF16.431.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225D
Deuteranopia (green-blind)
#001C5A
Tritanopia (blue-blind)
#002635
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #1b115b;
/* rgb */ color: rgb(27, 17, 91);
/* oklch */ color: oklch(25.3% 0.124 279.0);
Tailwind
colors: {
  custom: {
    50: '#62518a',
    500: '#1b115b',
    950: '#000000',
  },
}
SCSS
$custom: #1b115b;
$custom-light: #62518a;
$custom-dark: #000000;
JSON
{
  "hex": "#1b115b",
  "rgb": {
    "r": 27,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 248.108,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.25325,
    "c": 0.12351,
    "h": 279
  },
  "luminance": 0.01389
}

Semantic roles & 50–950 ramp

primary
#1B115B
secondary
#879434
accent
#EB3CD4
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1B115B

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

Preview Lab → · Contrast checker → · Palette generator →

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