#1B115E#1B115E

#1B115E is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.7% C 0.128 H 278.3°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#1B115E
RGBrgb(27, 17, 94)
HSLhsl(248, 69%, 22%)
HSVhsv(248, 82%, 37%)
CMYKcmyk(71.3%, 81.9%, 0%, 63.1%)
CIE-LABlab(12.23, 30.34, -43.69)
CIE-LCHlch(12.23, 53.19, 304.78°)
OKLaboklab(25.67% 0.0185 -0.1262)
OKLCHoklch(25.67% 0.128 278.3)
XYZxyz(2.6722, 1.4418, 10.7250)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B115E #545E11
analogous
#112E5E #1B115E #42115E
triadic
#1B115E #5E1B11 #115E1B
tetradic
#1B115E #5E112E #545E11 #115E42
square
#1B115E #5E112E #545E11 #115E42
split-complementary
#1B115E #5E4211 #2E5E11
monochromatic
#07051A #0C082A #1B115E #2A1A92 #3924C6

Accessibility & contrast

On white

16.30
#1B115E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#1B115E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B115E
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B115E#FFFFFF#000000##FFFFFF
##1B115E1.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002360
Deuteranopia (green-blind)
#001D5D
Tritanopia (blue-blind)
#002837
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #1b115e;
/* rgb */ color: rgb(27, 17, 94);
/* oklch */ color: oklch(25.7% 0.128 278.3);
Tailwind
colors: {
  custom: {
    50: '#63518d',
    500: '#1b115e',
    950: '#000000',
  },
}
SCSS
$custom: #1b115e;
$custom-light: #63518d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b115e",
  "rgb": {
    "r": 27,
    "g": 17,
    "b": 94
  },
  "hsl": {
    "h": 247.792,
    "s": 69.369,
    "l": 21.765
  },
  "oklch": {
    "l": 0.25674,
    "c": 0.12753,
    "h": 278.3
  },
  "luminance": 0.01442
}

Semantic roles & 50–950 ramp

primary
#1B115E
secondary
#8A9734
accent
#EC3CD5
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1B115E

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

Preview Lab → · Contrast checker → · Palette generator →

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