#1B115C#1B115C

#1B115C is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.4% C 0.125 H 278.8°. Best body text is #FFFFFF at 16.39:1 contrast (WCAG AA passes).

Color values

HEX#1B115C
RGBrgb(27, 17, 92)
HSLhsl(248, 69%, 21%)
HSVhsv(248, 82%, 36%)
CMYKcmyk(70.7%, 81.5%, 0%, 63.9%)
CIE-LABlab(12.00, 29.65, -42.73)
CIE-LCHlch(12.00, 52.01, 304.75°)
OKLaboklab(25.44% 0.019 -0.1234)
OKLCHoklch(25.44% 0.125 278.8)
XYZxyz(2.5836, 1.4064, 10.2585)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B115C #525C11
analogous
#112D5C #1B115C #41115C
triadic
#1B115C #5C1B11 #115C1B
tetradic
#1B115C #5C112D #525C11 #115C41
square
#1B115C #5C112D #525C11 #115C41
split-complementary
#1B115C #5C4111 #2D5C11
monochromatic
#08051A #0C0728 #1B115C #2A1B90 #3924C3

Accessibility & contrast

On white

16.39
#1B115C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B115C
16.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B115C#FFFFFF#000000##FFFFFF
##1B115C1.0016.391.2816.39
#FFFFFF16.391.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225E
Deuteranopia (green-blind)
#001C5B
Tritanopia (blue-blind)
#002736
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #1b115c;
/* rgb */ color: rgb(27, 17, 92);
/* oklch */ color: oklch(25.4% 0.125 278.8);
Tailwind
colors: {
  custom: {
    50: '#62518b',
    500: '#1b115c',
    950: '#000000',
  },
}
SCSS
$custom: #1b115c;
$custom-light: #62518b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b115c",
  "rgb": {
    "r": 27,
    "g": 17,
    "b": 92
  },
  "hsl": {
    "h": 248,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.2544,
    "c": 0.12486,
    "h": 278.8
  },
  "luminance": 0.01407
}

Semantic roles & 50–950 ramp

primary
#1B115C
secondary
#889534
accent
#EC3CD4
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1B115C

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

Preview Lab → · Contrast checker → · Palette generator →

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