#1B40AD#1B40AD

#1B40AD is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.2% C 0.179 H 264.9°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#1B40AD
RGBrgb(27, 64, 173)
HSLhsl(225, 73%, 39%)
HSVhsv(225, 84%, 68%)
CMYKcmyk(84.4%, 63%, 0%, 32.2%)
CIE-LABlab(31.61, 29.43, -61.56)
CIE-LCHlch(31.61, 68.23, 295.55°)
OKLaboklab(42.16% -0.0158 -0.1782)
OKLCHoklch(42.16% 0.179 264.9)
XYZxyz(9.8255, 6.9157, 40.3441)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B40AD #AD881B
analogous
#1B89AD #1B40AD #3F1BAD
triadic
#1B40AD #AD1B40 #40AD1B
tetradic
#1B40AD #AD1B89 #AD881B #1BAD3F
square
#1B40AD #AD1B89 #AD881B #1BAD3F
split-complementary
#1B40AD #AD3F1B #89AD1B
monochromatic
#0A1943 #132C78 #1B40AD #2856DD #5D7FE6

Accessibility & contrast

On white

8.81
#1B40AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#1B40AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B40AD
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B40AD#FFFFFF#000000##FFFFFF
##1B40AD1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B1
Deuteranopia (green-blind)
#0044AB
Tritanopia (blue-blind)
#005D70
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1b40ad;
/* rgb */ color: rgb(27, 64, 173);
/* oklch */ color: oklch(42.2% 0.179 264.9);
Tailwind
colors: {
  custom: {
    50: '#7374c6',
    500: '#1b40ad',
    950: '#000000',
  },
}
SCSS
$custom: #1b40ad;
$custom-light: #7374c6;
$custom-dark: #000000;
JSON
{
  "hex": "#1b40ad",
  "rgb": {
    "r": 27,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 224.795,
    "s": 73,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42158,
    "c": 0.17893,
    "h": 264.9
  },
  "luminance": 0.06917
}

Semantic roles & 50–950 ramp

primary
#1B40AD
secondary
#CAAD5A
accent
#C138F0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #1B40AD

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

Preview Lab → · Contrast checker → · Palette generator →

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