#1B1E71#1B1E71

#1B1E71 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.9% C 0.139 H 272.7°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#1B1E71
RGBrgb(27, 30, 113)
HSLhsl(238, 61%, 27%)
HSVhsv(238, 76%, 44%)
CMYKcmyk(76.1%, 73.5%, 0%, 55.7%)
CIE-LABlab(17.24, 29.11, -47.94)
CIE-LCHlch(17.24, 56.08, 301.27°)
OKLaboklab(29.87% 0.0065 -0.1387)
OKLCHoklch(29.87% 0.139 272.7)
XYZxyz(3.8959, 2.3534, 15.8685)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1E71 #716E1B
analogous
#1B4971 #1B1E71 #431B71
triadic
#1B1E71 #711B1E #1E711B
tetradic
#1B1E71 #711B49 #716E1B #1B7143
square
#1B1E71 #711B49 #716E1B #1B7143
split-complementary
#1B1E71 #71431B #49711B
monochromatic
#060719 #0F1140 #1B1E71 #272BA2 #373CCF

Accessibility & contrast

On white

14.28
#1B1E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#1B1E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1E71
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1E71#FFFFFF#000000##FFFFFF
##1B1E711.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#00266F
Tritanopia (blue-blind)
#003545
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1b1e71;
/* rgb */ color: rgb(27, 30, 113);
/* oklch */ color: oklch(29.9% 0.139 272.7);
Tailwind
colors: {
  custom: {
    50: '#665a9b',
    500: '#1b1e71',
    950: '#000000',
  },
}
SCSS
$custom: #1b1e71;
$custom-light: #665a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1e71",
  "rgb": {
    "r": 27,
    "g": 30,
    "b": 113
  },
  "hsl": {
    "h": 237.907,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.29869,
    "c": 0.13881,
    "h": 272.7
  },
  "luminance": 0.02354
}

Semantic roles & 50–950 ramp

primary
#1B1E71
secondary
#A6A242
accent
#DF43E5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1B1E71

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

Preview Lab → · Contrast checker → · Palette generator →

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