#1B40A8#1B40A8

#1B40A8 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.7% C 0.172 H 264.7°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#1B40A8
RGBrgb(27, 64, 168)
HSLhsl(224, 72%, 38%)
HSVhsv(224, 84%, 66%)
CMYKcmyk(83.9%, 61.9%, 0%, 34.1%)
CIE-LABlab(31.17, 27.48, -59.28)
CIE-LCHlch(31.17, 65.34, 294.87°)
OKLaboklab(41.7% -0.0159 -0.1716)
OKLCHoklch(41.7% 0.172 264.7)
XYZxyz(9.3508, 6.7258, 37.8436)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B40A8 #A8831B
analogous
#1B86A8 #1B40A8 #3C1BA8
triadic
#1B40A8 #A81B40 #40A81B
tetradic
#1B40A8 #A81B86 #A8831B #1BA83C
square
#1B40A8 #A81B86 #A8831B #1BA83C
split-complementary
#1B40A8 #A83C1B #86A81B
monochromatic
#0A183F #132C73 #1B40A8 #2454DC #597EE4

Accessibility & contrast

On white

8.95
#1B40A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#1B40A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B40A8
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B40A8#FFFFFF#000000##FFFFFF
##1B40A81.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AB
Deuteranopia (green-blind)
#0043A6
Tritanopia (blue-blind)
#005B6E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1b40a8;
/* rgb */ color: rgb(27, 64, 168);
/* oklch */ color: oklch(41.7% 0.172 264.7);
Tailwind
colors: {
  custom: {
    50: '#7274c3',
    500: '#1b40a8',
    950: '#000000',
  },
}
SCSS
$custom: #1b40a8;
$custom-light: #7274c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1b40a8",
  "rgb": {
    "r": 27,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 224.255,
    "s": 72.308,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41695,
    "c": 0.17231,
    "h": 264.7
  },
  "luminance": 0.06727
}

Semantic roles & 50–950 ramp

primary
#1B40A8
secondary
#C8AA57
accent
#BF39EF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090813
muted
#7B7B82

Preview Lab

Preview with #1B40A8

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

Preview Lab → · Contrast checker → · Palette generator →

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