#1B3E97#1B3E97

#1B3E97 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.8% C 0.152 H 264.2°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#1B3E97
RGBrgb(27, 62, 151)
HSLhsl(223, 70%, 35%)
HSVhsv(223, 82%, 59%)
CMYKcmyk(82.1%, 58.9%, 0%, 40.8%)
CIE-LABlab(29.19, 22.12, -52.24)
CIE-LCHlch(29.19, 56.73, 292.95°)
OKLaboklab(39.76% -0.0152 -0.1509)
OKLCHoklch(39.76% 0.152 264.2)
XYZxyz(7.7585, 5.9117, 30.0043)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3E97 #97741B
analogous
#1B7C97 #1B3E97 #361B97
triadic
#1B3E97 #971B3E #3E971B
tetradic
#1B3E97 #971B7C #97741B #1B9736
square
#1B3E97 #971B7C #97741B #1B9736
split-complementary
#1B3E97 #97361B #7C971B
monochromatic
#08132F #122963 #1B3E97 #2453CB #4D76DF

Accessibility & contrast

On white

9.62
#1B3E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#1B3E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3E97
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3E97#FFFFFF#000000##FFFFFF
##1B3E971.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#005464
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1b3e97;
/* rgb */ color: rgb(27, 62, 151);
/* oklch */ color: oklch(39.8% 0.152 264.2);
Tailwind
colors: {
  custom: {
    50: '#6e72b6',
    500: '#1b3e97',
    950: '#000000',
  },
}
SCSS
$custom: #1b3e97;
$custom-light: #6e72b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3e97",
  "rgb": {
    "r": 27,
    "g": 62,
    "b": 151
  },
  "hsl": {
    "h": 223.065,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39762,
    "c": 0.1517,
    "h": 264.2
  },
  "luminance": 0.05913
}

Semantic roles & 50–950 ramp

primary
#1B3E97
secondary
#C1A04C
accent
#BA3BEC
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1B3E97

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

Preview Lab → · Contrast checker → · Palette generator →

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