#1B1671#1B1671

#1B1671 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.147 H 274.2°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#1B1671
RGBrgb(27, 22, 113)
HSLhsl(243, 67%, 26%)
HSVhsv(243, 81%, 44%)
CMYKcmyk(76.1%, 80.5%, 0%, 55.7%)
CIE-LABlab(15.48, 34.05, -50.84)
CIE-LCHlch(15.48, 61.19, 303.81°)
OKLaboklab(28.62% 0.0108 -0.1471)
OKLCHoklch(28.62% 0.147 274.2)
XYZxyz(3.7186, 1.9987, 15.8094)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1671 #6C7116
analogous
#163F71 #1B1671 #491671
triadic
#1B1671 #711B16 #16711B
tetradic
#1B1671 #71163F #6C7116 #167149
square
#1B1671 #71163F #6C7116 #167149
split-complementary
#1B1671 #714916 #3F7116
monochromatic
#06051A #0F0C3E #1B1671 #2720A4 #352CD6

Accessibility & contrast

On white

15.00
#1B1671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#1B1671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1671
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1671#FFFFFF#000000##FFFFFF
##1B16711.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00226F
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1b1671;
/* rgb */ color: rgb(27, 22, 113);
/* oklch */ color: oklch(28.6% 0.147 274.2);
Tailwind
colors: {
  custom: {
    50: '#67559b',
    500: '#1b1671',
    950: '#000000',
  },
}
SCSS
$custom: #1b1671;
$custom-light: #67559b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1671",
  "rgb": {
    "r": 27,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 243.297,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.28616,
    "c": 0.14747,
    "h": 274.2
  },
  "luminance": 0.01999
}

Semantic roles & 50–950 ramp

primary
#1B1671
secondary
#A1A73C
accent
#EA3EE1
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1B1671

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

Preview Lab → · Contrast checker → · Palette generator →

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