#1B3E87#1B3E87

#1B3E87 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.4% C 0.129 H 262.7°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#1B3E87
RGBrgb(27, 62, 135)
HSLhsl(221, 67%, 32%)
HSVhsv(221, 80%, 53%)
CMYKcmyk(80%, 54.1%, 0%, 47.1%)
CIE-LABlab(27.92, 15.65, -44.45)
CIE-LCHlch(27.92, 47.13, 289.40°)
OKLaboklab(38.4% -0.0165 -0.128)
OKLCHoklch(38.4% 0.129 262.7)
XYZxyz(6.5462, 5.4268, 23.6194)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3E87 #87641B
analogous
#1B7487 #1B3E87 #2E1B87
triadic
#1B3E87 #871B3E #3E871B
tetradic
#1B3E87 #871B74 #87641B #1B872E
square
#1B3E87 #871B74 #87641B #1B872E
split-complementary
#1B3E87 #872E1B #74871B
monochromatic
#070F21 #112754 #1B3E87 #2555BA #4374D9

Accessibility & contrast

On white

10.07
#1B3E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#1B3E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3E87
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3E87#FFFFFF#000000##FFFFFF
##1B3E871.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09478A
Deuteranopia (green-blind)
#003D86
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1b3e87;
/* rgb */ color: rgb(27, 62, 135);
/* oklch */ color: oklch(38.4% 0.129 262.7);
Tailwind
colors: {
  custom: {
    50: '#6972ab',
    500: '#1b3e87',
    950: '#000000',
  },
}
SCSS
$custom: #1b3e87;
$custom-light: #6972ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3e87",
  "rgb": {
    "r": 27,
    "g": 62,
    "b": 135
  },
  "hsl": {
    "h": 220.556,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38402,
    "c": 0.12911,
    "h": 262.7
  },
  "luminance": 0.05428
}

Semantic roles & 50–950 ramp

primary
#1B3E87
secondary
#BA9444
accent
#B23EEA
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1B3E87

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

Preview Lab → · Contrast checker → · Palette generator →

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