#1B3C87#1B3C87

#1B3C87 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.0% C 0.132 H 263.5°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#1B3C87
RGBrgb(27, 60, 135)
HSLhsl(222, 67%, 32%)
HSVhsv(222, 80%, 53%)
CMYKcmyk(80%, 55.6%, 0%, 47.1%)
CIE-LABlab(27.33, 17.05, -45.40)
CIE-LCHlch(27.33, 48.49, 290.58°)
OKLaboklab(37.96% -0.0149 -0.1309)
OKLCHoklch(37.96% 0.132 263.5)
XYZxyz(6.4395, 5.2133, 23.5838)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3C87 #87661B
analogous
#1B7287 #1B3C87 #301B87
triadic
#1B3C87 #871B3C #3C871B
tetradic
#1B3C87 #871B72 #87661B #1B8730
square
#1B3C87 #871B72 #87661B #1B8730
split-complementary
#1B3C87 #87301B #72871B
monochromatic
#070F21 #112554 #1B3C87 #2553BA #4371D9

Accessibility & contrast

On white

10.28
#1B3C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#1B3C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3C87
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3C87#FFFFFF#000000##FFFFFF
##1B3C871.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468A
Deuteranopia (green-blind)
#003C86
Tritanopia (blue-blind)
#004E5B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1b3c87;
/* rgb */ color: rgb(27, 60, 135);
/* oklch */ color: oklch(38.0% 0.132 263.5);
Tailwind
colors: {
  custom: {
    50: '#6a71ab',
    500: '#1b3c87',
    950: '#000000',
  },
}
SCSS
$custom: #1b3c87;
$custom-light: #6a71ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3c87",
  "rgb": {
    "r": 27,
    "g": 60,
    "b": 135
  },
  "hsl": {
    "h": 221.667,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37959,
    "c": 0.13173,
    "h": 263.5
  },
  "luminance": 0.05214
}

Semantic roles & 50–950 ramp

primary
#1B3C87
secondary
#BA9644
accent
#B53EEA
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #1B3C87

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

Preview Lab → · Contrast checker → · Palette generator →

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