#1B115F#1B115F

#1B115F is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.8% C 0.129 H 278.1°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#1B115F
RGBrgb(27, 17, 95)
HSLhsl(248, 70%, 22%)
HSVhsv(248, 82%, 37%)
CMYKcmyk(71.6%, 82.1%, 0%, 62.7%)
CIE-LABlab(12.35, 30.68, -44.16)
CIE-LCHlch(12.35, 53.78, 304.79°)
OKLaboklab(25.79% 0.0182 -0.1276)
OKLCHoklch(25.79% 0.129 278.1)
XYZxyz(2.7173, 1.4599, 10.9628)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B115F #555F11
analogous
#112E5F #1B115F #42115F
triadic
#1B115F #5F1B11 #115F1B
tetradic
#1B115F #5F112E #555F11 #115F42
square
#1B115F #5F112E #555F11 #115F42
split-complementary
#1B115F #5F4211 #2E5F11
monochromatic
#07051A #0C082B #1B115F #2A1A93 #3924C7

Accessibility & contrast

On white

16.25
#1B115F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B115F
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B115F#FFFFFF#000000##FFFFFF
##1B115F1.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b115f;
/* rgb */ color: rgb(27, 17, 95);
/* oklch */ color: oklch(25.8% 0.129 278.1);
Tailwind
colors: {
  custom: {
    50: '#63518d',
    500: '#1b115f',
    950: '#000000',
  },
}
SCSS
$custom: #1b115f;
$custom-light: #63518d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b115f",
  "rgb": {
    "r": 27,
    "g": 17,
    "b": 95
  },
  "hsl": {
    "h": 247.692,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.25791,
    "c": 0.12886,
    "h": 278.1
  },
  "luminance": 0.0146
}

Semantic roles & 50–950 ramp

primary
#1B115F
secondary
#8B9834
accent
#EC3BD6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1B115F

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

Preview Lab → · Contrast checker → · Palette generator →

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