#1B3996#1B3996

#1B3996 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.7% C 0.157 H 265.6°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#1B3996
RGBrgb(27, 57, 150)
HSLhsl(225, 69%, 35%)
HSVhsv(225, 82%, 59%)
CMYKcmyk(82%, 62%, 0%, 41.2%)
CIE-LABlab(27.74, 25.15, -53.99)
CIE-LCHlch(27.74, 59.56, 294.98°)
OKLaboklab(38.65% -0.0121 -0.1562)
OKLCHoklch(38.65% 0.157 265.6)
XYZxyz(7.4182, 5.3604, 29.4919)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3996 #96781B
analogous
#1B7796 #1B3996 #3B1B96
triadic
#1B3996 #961B39 #39961B
tetradic
#1B3996 #961B77 #96781B #1B963B
square
#1B3996 #961B77 #96781B #1B963B
split-complementary
#1B3996 #963B1B #77961B
monochromatic
#08122E #122562 #1B3996 #244DCA #4D70DF

Accessibility & contrast

On white

10.13
#1B3996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#1B3996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3996
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3996#FFFFFF#000000##FFFFFF
##1B39961.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004799
Deuteranopia (green-blind)
#003C94
Tritanopia (blue-blind)
#005162
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1b3996;
/* rgb */ color: rgb(27, 57, 150);
/* oklch */ color: oklch(38.7% 0.157 265.6);
Tailwind
colors: {
  custom: {
    50: '#6e6fb6',
    500: '#1b3996',
    950: '#000000',
  },
}
SCSS
$custom: #1b3996;
$custom-light: #6e6fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3996",
  "rgb": {
    "r": 27,
    "g": 57,
    "b": 150
  },
  "hsl": {
    "h": 225.366,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38651,
    "c": 0.15664,
    "h": 265.6
  },
  "luminance": 0.05361
}

Semantic roles & 50–950 ramp

primary
#1B3996
secondary
#C1A44C
accent
#C13BEC
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1B3996

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

Preview Lab → · Contrast checker → · Palette generator →

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