#1B3B87#1B3B87

#1B3B87 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.7% C 0.133 H 263.9°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#1B3B87
RGBrgb(27, 59, 135)
HSLhsl(222, 67%, 32%)
HSVhsv(222, 80%, 53%)
CMYKcmyk(80%, 56.3%, 0%, 47.1%)
CIE-LABlab(27.04, 17.75, -45.87)
CIE-LCHlch(27.04, 49.18, 291.15°)
OKLaboklab(37.74% -0.0142 -0.1323)
OKLCHoklch(37.74% 0.133 263.9)
XYZxyz(6.3876, 5.1095, 23.5666)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3B87 #87671B
analogous
#1B7187 #1B3B87 #311B87
triadic
#1B3B87 #871B3B #3B871B
tetradic
#1B3B87 #871B71 #87671B #1B8731
square
#1B3B87 #871B71 #87671B #1B8731
split-complementary
#1B3B87 #87311B #71871B
monochromatic
#070E21 #112554 #1B3B87 #2551BA #4370D9

Accessibility & contrast

On white

10.39
#1B3B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#1B3B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3B87
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3B87#FFFFFF#000000##FFFFFF
##1B3B871.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#003B86
Tritanopia (blue-blind)
#004E5B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1b3b87;
/* rgb */ color: rgb(27, 59, 135);
/* oklch */ color: oklch(37.7% 0.133 263.9);
Tailwind
colors: {
  custom: {
    50: '#6a70ab',
    500: '#1b3b87',
    950: '#000000',
  },
}
SCSS
$custom: #1b3b87;
$custom-light: #6a70ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3b87",
  "rgb": {
    "r": 27,
    "g": 59,
    "b": 135
  },
  "hsl": {
    "h": 222.222,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3774,
    "c": 0.13304,
    "h": 263.9
  },
  "luminance": 0.0511
}

Semantic roles & 50–950 ramp

primary
#1B3B87
secondary
#BA9744
accent
#B73EEA
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #1B3B87

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

Preview Lab → · Contrast checker → · Palette generator →

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