#1B2171#1B2171

#1B2171 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.4% C 0.135 H 271.9°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#1B2171
RGBrgb(27, 33, 113)
HSLhsl(236, 61%, 27%)
HSVhsv(236, 76%, 44%)
CMYKcmyk(76.1%, 70.8%, 0%, 55.7%)
CIE-LABlab(17.98, 27.12, -46.73)
CIE-LCHlch(17.98, 54.03, 300.13°)
OKLaboklab(30.4% 0.0046 -0.1351)
OKLCHoklch(30.4% 0.135 271.9)
XYZxyz(3.9755, 2.5126, 15.8950)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2171 #716B1B
analogous
#1B4C71 #1B2171 #401B71
triadic
#1B2171 #711B21 #21711B
tetradic
#1B2171 #711B4C #716B1B #1B7140
square
#1B2171 #711B4C #716B1B #1B7140
split-complementary
#1B2171 #71401B #4C711B
monochromatic
#060719 #0F1340 #1B2171 #272FA2 #3742CF

Accessibility & contrast

On white

13.98
#1B2171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#1B2171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2171
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2171#FFFFFF#000000##FFFFFF
##1B21711.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1b2171;
/* rgb */ color: rgb(27, 33, 113);
/* oklch */ color: oklch(30.4% 0.135 271.9);
Tailwind
colors: {
  custom: {
    50: '#665c9b',
    500: '#1b2171',
    950: '#000000',
  },
}
SCSS
$custom: #1b2171;
$custom-light: #665c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2171",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 235.814,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30399,
    "c": 0.13521,
    "h": 271.9
  },
  "luminance": 0.02513
}

Semantic roles & 50–950 ramp

primary
#1B2171
secondary
#A69F42
accent
#D943E5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1B2171

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

Preview Lab → · Contrast checker → · Palette generator →

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