#1B3A87#1B3A87

#1B3A87 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.5% C 0.134 H 264.3°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#1B3A87
RGBrgb(27, 58, 135)
HSLhsl(223, 67%, 32%)
HSVhsv(223, 80%, 53%)
CMYKcmyk(80%, 57%, 0%, 47.1%)
CIE-LABlab(26.76, 18.45, -46.33)
CIE-LCHlch(26.76, 49.87, 291.71°)
OKLaboklab(37.52% -0.0134 -0.1337)
OKLCHoklch(37.52% 0.134 264.3)
XYZxyz(6.3367, 5.0077, 23.5496)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3A87 #87681B
analogous
#1B7087 #1B3A87 #321B87
triadic
#1B3A87 #871B3A #3A871B
tetradic
#1B3A87 #871B70 #87681B #1B8732
square
#1B3A87 #871B70 #87681B #1B8732
split-complementary
#1B3A87 #87321B #70871B
monochromatic
#070E21 #112454 #1B3A87 #2550BA #436ED9

Accessibility & contrast

On white

10.49
#1B3A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#1B3A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3A87
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3A87#FFFFFF#000000##FFFFFF
##1B3A871.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#004D5A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1b3a87;
/* rgb */ color: rgb(27, 58, 135);
/* oklch */ color: oklch(37.5% 0.134 264.3);
Tailwind
colors: {
  custom: {
    50: '#6a6fab',
    500: '#1b3a87',
    950: '#000000',
  },
}
SCSS
$custom: #1b3a87;
$custom-light: #6a6fab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3a87",
  "rgb": {
    "r": 27,
    "g": 58,
    "b": 135
  },
  "hsl": {
    "h": 222.778,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37522,
    "c": 0.13434,
    "h": 264.3
  },
  "luminance": 0.05008
}

Semantic roles & 50–950 ramp

primary
#1B3A87
secondary
#BA9844
accent
#B83EEA
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #1B3A87

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

Preview Lab → · Contrast checker → · Palette generator →

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