#1B118C#1B118C

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

Color values

HEX#1B118C
RGBrgb(27, 17, 140)
HSLhsl(245, 78%, 31%)
HSVhsv(245, 88%, 55%)
CMYKcmyk(80.7%, 87.9%, 0%, 45.1%)
CIE-LABlab(18.04, 45.31, -63.80)
CIE-LCHlch(18.04, 78.25, 305.38°)
OKLaboklab(31.37% 0.0053 -0.1845)
OKLCHoklch(31.37% 0.185 271.6)
XYZxyz(5.3845, 2.5268, 25.0098)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B118C #828C11
analogous
#11448C #1B118C #58118C
triadic
#1B118C #8C1B11 #118C1B
tetradic
#1B118C #8C1144 #828C11 #118C58
square
#1B118C #8C1144 #828C11 #118C58
split-complementary
#1B118C #8C5811 #448C11
monochromatic
#06041F #100A55 #1B118C #2618C3 #4031E6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1B118C#FFFFFF#000000##FFFFFF
##1B118C1.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)
#00328F
Deuteranopia (green-blind)
#00268A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1b118c;
/* rgb */ color: rgb(27, 17, 140);
/* oklch */ color: oklch(31.4% 0.185 271.6);
Tailwind
colors: {
  custom: {
    50: '#6f55af',
    500: '#1b118c',
    950: '#000000',
  },
}
SCSS
$custom: #1b118c;
$custom-light: #6f55af;
$custom-dark: #000000;
JSON
{
  "hex": "#1b118c",
  "rgb": {
    "r": 27,
    "g": 17,
    "b": 140
  },
  "hsl": {
    "h": 244.878,
    "s": 78.344,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31369,
    "c": 0.18459,
    "h": 271.6
  },
  "luminance": 0.02527
}

Semantic roles & 50–950 ramp

primary
#1B118C
secondary
#B6C138
accent
#F533E5
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #1B118C

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

Preview Lab → · Contrast checker → · Palette generator →

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