#1B3D87#1B3D87

#1B3D87 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.2% C 0.130 H 263.1°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#1B3D87
RGBrgb(27, 61, 135)
HSLhsl(221, 67%, 32%)
HSVhsv(221, 80%, 53%)
CMYKcmyk(80%, 54.8%, 0%, 47.1%)
CIE-LABlab(27.62, 16.35, -44.93)
CIE-LCHlch(27.62, 47.81, 290.00°)
OKLaboklab(38.18% -0.0157 -0.1295)
OKLCHoklch(38.18% 0.13 263.1)
XYZxyz(6.4923, 5.3190, 23.6015)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3D87 #87651B
analogous
#1B7387 #1B3D87 #2F1B87
triadic
#1B3D87 #871B3D #3D871B
tetradic
#1B3D87 #871B73 #87651B #1B872F
square
#1B3D87 #871B73 #87651B #1B872F
split-complementary
#1B3D87 #872F1B #73871B
monochromatic
#070F21 #112654 #1B3D87 #2554BA #4372D9

Accessibility & contrast

On white

10.17
#1B3D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#1B3D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3D87
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3D87#FFFFFF#000000##FFFFFF
##1B3D871.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04468A
Deuteranopia (green-blind)
#003D86
Tritanopia (blue-blind)
#004F5C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1b3d87;
/* rgb */ color: rgb(27, 61, 135);
/* oklch */ color: oklch(38.2% 0.130 263.1);
Tailwind
colors: {
  custom: {
    50: '#6971ab',
    500: '#1b3d87',
    950: '#000000',
  },
}
SCSS
$custom: #1b3d87;
$custom-light: #6971ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3d87",
  "rgb": {
    "r": 27,
    "g": 61,
    "b": 135
  },
  "hsl": {
    "h": 221.111,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3818,
    "c": 0.13042,
    "h": 263.1
  },
  "luminance": 0.0532
}

Semantic roles & 50–950 ramp

primary
#1B3D87
secondary
#BA9544
accent
#B43EEA
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #1B3D87

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

Preview Lab → · Contrast checker → · Palette generator →

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