#1B1F88#1B1F88

#1B1F88 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.168 H 270.7°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#1B1F88
RGBrgb(27, 31, 136)
HSLhsl(238, 67%, 32%)
HSVhsv(238, 80%, 53%)
CMYKcmyk(80.1%, 77.2%, 0%, 46.7%)
CIE-LABlab(20.00, 36.84, -58.03)
CIE-LCHlch(20.00, 68.74, 302.41°)
OKLaboklab(32.6% 0.0022 -0.168)
OKLCHoklch(32.6% 0.168 270.7)
XYZxyz(5.3844, 2.9900, 23.5811)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1F88 #88841B
analogous
#1B5688 #1B1F88 #4E1B88
triadic
#1B1F88 #881B1F #1F881B
tetradic
#1B1F88 #881B56 #88841B #1B884E
square
#1B1F88 #881B56 #88841B #1B884E
split-complementary
#1B1F88 #884E1B #56881B
monochromatic
#070822 #111355 #1B1F88 #252BBB #4449DA

Accessibility & contrast

On white

13.14
#1B1F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#1B1F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1F88
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1F88#FFFFFF#000000##FFFFFF
##1B1F881.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002B86
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1b1f88;
/* rgb */ color: rgb(27, 31, 136);
/* oklch */ color: oklch(32.6% 0.168 270.7);
Tailwind
colors: {
  custom: {
    50: '#6c5cac',
    500: '#1b1f88',
    950: '#000000',
  },
}
SCSS
$custom: #1b1f88;
$custom-light: #6c5cac;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1f88",
  "rgb": {
    "r": 27,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 237.798,
    "s": 66.871,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32597,
    "c": 0.16806,
    "h": 270.7
  },
  "luminance": 0.02991
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B1F88

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

Preview Lab → · Contrast checker → · Palette generator →

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