#1B1171#1B1171

#1B1171 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 28.0% C 0.152 H 274.9°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#1B1171
RGBrgb(27, 17, 113)
HSLhsl(246, 74%, 25%)
HSVhsv(246, 85%, 44%)
CMYKcmyk(76.1%, 85%, 0%, 55.7%)
CIE-LABlab(14.55, 36.75, -52.39)
CIE-LCHlch(14.55, 64.00, 305.05°)
OKLaboklab(27.96% 0.013 -0.1515)
OKLCHoklch(27.96% 0.152 274.9)
XYZxyz(3.6321, 1.8258, 15.7806)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1171 #677111
analogous
#113771 #1B1171 #4B1171
triadic
#1B1171 #711B11 #11711B
tetradic
#1B1171 #711137 #677111 #11714B
square
#1B1171 #711137 #677111 #11714B
split-complementary
#1B1171 #714B11 #377111
monochromatic
#06041B #0E093C #1B1171 #2819A6 #3421DB

Accessibility & contrast

On white

15.38
#1B1171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#1B1171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1171
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1171#FFFFFF#000000##FFFFFF
##1B11711.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002974
Deuteranopia (green-blind)
#00206F
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1b1171;
/* rgb */ color: rgb(27, 17, 113);
/* oklch */ color: oklch(28.0% 0.152 274.9);
Tailwind
colors: {
  custom: {
    50: '#68529b',
    500: '#1b1171',
    950: '#000000',
  },
}
SCSS
$custom: #1b1171;
$custom-light: #68529b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1171",
  "rgb": {
    "r": 27,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 246.25,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.27964,
    "c": 0.15205,
    "h": 274.9
  },
  "luminance": 0.01826
}

Semantic roles & 50–950 ramp

primary
#1B1171
secondary
#9CA836
accent
#F137DD
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1B1171

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

Preview Lab → · Contrast checker → · Palette generator →

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