#1B1F87#1B1F87

#1B1F87 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.167 H 270.8°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#1B1F87
RGBrgb(27, 31, 135)
HSLhsl(238, 67%, 32%)
HSVhsv(238, 80%, 53%)
CMYKcmyk(80%, 77%, 0%, 47.1%)
CIE-LABlab(19.89, 36.49, -57.59)
CIE-LCHlch(19.89, 68.18, 302.36°)
OKLaboklab(32.48% 0.0024 -0.1668)
OKLCHoklch(32.48% 0.167 270.8)
XYZxyz(5.3137, 2.9617, 23.2086)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1F87 #87831B
analogous
#1B5587 #1B1F87 #4D1B87
triadic
#1B1F87 #871B1F #1F871B
tetradic
#1B1F87 #871B55 #87831B #1B874D
square
#1B1F87 #871B55 #87831B #1B874D
split-complementary
#1B1F87 #874D1B #55871B
monochromatic
#070821 #111354 #1B1F87 #252BBA #4349D9

Accessibility & contrast

On white

13.19
#1B1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B1F87
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1F87#FFFFFF#000000##FFFFFF
##1B1F871.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002B85
Tritanopia (blue-blind)
#003E51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1b1f87;
/* rgb */ color: rgb(27, 31, 135);
/* oklch */ color: oklch(32.5% 0.167 270.8);
Tailwind
colors: {
  custom: {
    50: '#6c5cab',
    500: '#1b1f87',
    950: '#000000',
  },
}
SCSS
$custom: #1b1f87;
$custom-light: #6c5cab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1f87",
  "rgb": {
    "r": 27,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 237.778,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32482,
    "c": 0.16679,
    "h": 270.8
  },
  "luminance": 0.02962
}

Semantic roles & 50–950 ramp

primary
#1B1F87
secondary
#BAB644
accent
#E33EEA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1B1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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