#1B1F86#1B1F86

#1B1F86 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.166 H 270.9°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#1B1F86
RGBrgb(27, 31, 134)
HSLhsl(238, 66%, 32%)
HSVhsv(238, 80%, 53%)
CMYKcmyk(79.9%, 76.9%, 0%, 47.5%)
CIE-LABlab(19.78, 36.13, -57.15)
CIE-LCHlch(19.78, 67.62, 302.30°)
OKLaboklab(32.37% 0.0026 -0.1655)
OKLCHoklch(32.37% 0.166 270.9)
XYZxyz(5.2436, 2.9336, 22.8395)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1F86 #86821B
analogous
#1B5586 #1B1F86 #4D1B86
triadic
#1B1F86 #861B1F #1F861B
tetradic
#1B1F86 #861B55 #86821B #1B864D
square
#1B1F86 #861B55 #86821B #1B864D
split-complementary
#1B1F86 #864D1B #55861B
monochromatic
#060720 #111353 #1B1F86 #252BB9 #4248D9

Accessibility & contrast

On white

13.23
#1B1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1B1F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1F86
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1F86#FFFFFF#000000##FFFFFF
##1B1F861.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002A84
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1b1f86;
/* rgb */ color: rgb(27, 31, 134);
/* oklch */ color: oklch(32.4% 0.166 270.9);
Tailwind
colors: {
  custom: {
    50: '#6c5caa',
    500: '#1b1f86',
    950: '#000000',
  },
}
SCSS
$custom: #1b1f86;
$custom-light: #6c5caa;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1f86",
  "rgb": {
    "r": 27,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 237.757,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32368,
    "c": 0.16551,
    "h": 270.9
  },
  "luminance": 0.02934
}

Semantic roles & 50–950 ramp

primary
#1B1F86
secondary
#B9B544
accent
#E33EE9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1B1F86

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

Preview Lab → · Contrast checker → · Palette generator →

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