#1B2671#1B2671

#1B2671 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.3% C 0.129 H 270.5°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#1B2671
RGBrgb(27, 38, 113)
HSLhsl(232, 61%, 27%)
HSVhsv(232, 76%, 44%)
CMYKcmyk(76.1%, 66.4%, 0%, 55.7%)
CIE-LABlab(19.27, 23.68, -44.61)
CIE-LCHlch(19.27, 50.50, 297.96°)
OKLaboklab(31.35% 0.0011 -0.1289)
OKLCHoklch(31.35% 0.129 270.5)
XYZxyz(4.1247, 2.8111, 15.9448)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2671 #71661B
analogous
#1B5171 #1B2671 #3B1B71
triadic
#1B2671 #711B26 #26711B
tetradic
#1B2671 #711B51 #71661B #1B713B
square
#1B2671 #711B51 #71661B #1B713B
split-complementary
#1B2671 #713B1B #51711B
monochromatic
#060819 #0F1540 #1B2671 #2737A2 #374BCF

Accessibility & contrast

On white

13.44
#1B2671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1B2671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2671
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2671#FFFFFF#000000##FFFFFF
##1B26711.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#003947
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1b2671;
/* rgb */ color: rgb(27, 38, 113);
/* oklch */ color: oklch(31.3% 0.129 270.5);
Tailwind
colors: {
  custom: {
    50: '#65609b',
    500: '#1b2671',
    950: '#000000',
  },
}
SCSS
$custom: #1b2671;
$custom-light: #65609b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2671",
  "rgb": {
    "r": 27,
    "g": 38,
    "b": 113
  },
  "hsl": {
    "h": 232.326,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31345,
    "c": 0.12889,
    "h": 270.5
  },
  "luminance": 0.02811
}

Semantic roles & 50–950 ramp

primary
#1B2671
secondary
#A69942
accent
#D043E5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #1B2671

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

Preview Lab → · Contrast checker → · Palette generator →

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