#1B3F87#1B3F87

#1B3F87 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.6% C 0.128 H 262.2°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#1B3F87
RGBrgb(27, 63, 135)
HSLhsl(220, 67%, 32%)
HSVhsv(220, 80%, 53%)
CMYKcmyk(80%, 53.3%, 0%, 47.1%)
CIE-LABlab(28.21, 14.96, -43.98)
CIE-LCHlch(28.21, 46.45, 288.78°)
OKLaboklab(38.63% -0.0173 -0.1266)
OKLCHoklch(38.63% 0.128 262.2)
XYZxyz(6.6011, 5.5365, 23.6377)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3F87 #87631B
analogous
#1B7587 #1B3F87 #2D1B87
triadic
#1B3F87 #871B3F #3F871B
tetradic
#1B3F87 #871B75 #87631B #1B872D
square
#1B3F87 #871B75 #87631B #1B872D
split-complementary
#1B3F87 #872D1B #75871B
monochromatic
#070F21 #112754 #1B3F87 #2557BA #4375D9

Accessibility & contrast

On white

9.96
#1B3F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#1B3F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3F87
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3F87#FFFFFF#000000##FFFFFF
##1B3F871.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E488A
Deuteranopia (green-blind)
#003E86
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1b3f87;
/* rgb */ color: rgb(27, 63, 135);
/* oklch */ color: oklch(38.6% 0.128 262.2);
Tailwind
colors: {
  custom: {
    50: '#6973aa',
    500: '#1b3f87',
    950: '#000000',
  },
}
SCSS
$custom: #1b3f87;
$custom-light: #6973aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3f87",
  "rgb": {
    "r": 27,
    "g": 63,
    "b": 135
  },
  "hsl": {
    "h": 220,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38626,
    "c": 0.1278,
    "h": 262.2
  },
  "luminance": 0.05537
}

Semantic roles & 50–950 ramp

primary
#1B3F87
secondary
#BA9344
accent
#B03EEA
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1B3F87

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

Preview Lab → · Contrast checker → · Palette generator →

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