#1B108D#1B108D

#1B108D is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.4% C 0.186 H 271.6°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#1B108D
RGBrgb(27, 16, 141)
HSLhsl(245, 80%, 31%)
HSVhsv(245, 89%, 55%)
CMYKcmyk(80.9%, 88.7%, 0%, 44.7%)
CIE-LABlab(18.04, 46.02, -64.43)
CIE-LCHlch(18.04, 79.18, 305.54°)
OKLaboklab(31.41% 0.0052 -0.1863)
OKLCHoklch(31.41% 0.186 271.6)
XYZxyz(5.4434, 2.5261, 25.3948)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B108D #828D10
analogous
#10438D #1B108D #59108D
triadic
#1B108D #8D1B10 #108D1B
tetradic
#1B108D #8D1043 #828D10 #108D59
square
#1B108D #8D1043 #828D10 #108D59
split-complementary
#1B108D #8D5910 #438D10
monochromatic
#06041F #100A56 #1B108D #2616C4 #4030E7

Accessibility & contrast

On white

13.95
#1B108D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1B108D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B108D
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B108D#FFFFFF#000000##FFFFFF
##1B108D1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003290
Deuteranopia (green-blind)
#00268B
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1b108d;
/* rgb */ color: rgb(27, 16, 141);
/* oklch */ color: oklch(31.4% 0.186 271.6);
Tailwind
colors: {
  custom: {
    50: '#6f54b0',
    500: '#1b108d',
    950: '#000000',
  },
}
SCSS
$custom: #1b108d;
$custom-light: #6f54b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b108d",
  "rgb": {
    "r": 27,
    "g": 16,
    "b": 141
  },
  "hsl": {
    "h": 245.28,
    "s": 79.618,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31405,
    "c": 0.18639,
    "h": 271.6
  },
  "luminance": 0.02527
}

Semantic roles & 50–950 ramp

primary
#1B108D
secondary
#B6C237
accent
#F632E5
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1B108D

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

Preview Lab → · Contrast checker → · Palette generator →

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