#1B40A1#1B40A1

#1B40A1 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.1% C 0.163 H 264.3°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#1B40A1
RGBrgb(27, 64, 161)
HSLhsl(223, 71%, 37%)
HSVhsv(223, 83%, 63%)
CMYKcmyk(83.2%, 60.2%, 0%, 36.9%)
CIE-LABlab(30.57, 24.73, -56.05)
CIE-LCHlch(30.57, 61.26, 293.81°)
OKLaboklab(41.06% -0.016 -0.1621)
OKLCHoklch(41.06% 0.163 264.3)
XYZxyz(8.7161, 6.4720, 34.5011)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B40A1 #A17C1B
analogous
#1B83A1 #1B40A1 #391BA1
triadic
#1B40A1 #A11B40 #40A11B
tetradic
#1B40A1 #A11B83 #A17C1B #1BA139
square
#1B40A1 #A11B83 #A17C1B #1BA139
split-complementary
#1B40A1 #A1391B #83A11B
monochromatic
#091638 #122B6D #1B40A1 #2455D5 #547BE2

Accessibility & contrast

On white

9.15
#1B40A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#1B40A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B40A1
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B40A1#FFFFFF#000000##FFFFFF
##1B40A11.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1b40a1;
/* rgb */ color: rgb(27, 64, 161);
/* oklch */ color: oklch(41.1% 0.163 264.3);
Tailwind
colors: {
  custom: {
    50: '#7074be',
    500: '#1b40a1',
    950: '#000000',
  },
}
SCSS
$custom: #1b40a1;
$custom-light: #7074be;
$custom-dark: #000000;
JSON
{
  "hex": "#1b40a1",
  "rgb": {
    "r": 27,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 223.433,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.4106,
    "c": 0.16289,
    "h": 264.3
  },
  "luminance": 0.06473
}

Semantic roles & 50–950 ramp

primary
#1B40A1
secondary
#C5A652
accent
#BC3AEE
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1B40A1

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

Preview Lab → · Contrast checker → · Palette generator →

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