#1B40A0#1B40A0

#1B40A0 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.0% C 0.162 H 264.3°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#1B40A0
RGBrgb(27, 64, 160)
HSLhsl(223, 71%, 37%)
HSVhsv(223, 83%, 63%)
CMYKcmyk(83.1%, 60%, 0%, 37.3%)
CIE-LABlab(30.49, 24.33, -55.58)
CIE-LCHlch(30.49, 60.68, 293.64°)
OKLaboklab(40.97% -0.0161 -0.1607)
OKLCHoklch(40.97% 0.162 264.3)
XYZxyz(8.6283, 6.4368, 34.0386)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B40A0 #A07B1B
analogous
#1B83A0 #1B40A0 #381BA0
triadic
#1B40A0 #A01B40 #40A01B
tetradic
#1B40A0 #A01B83 #A07B1B #1BA038
square
#1B40A0 #A01B83 #A07B1B #1BA038
split-complementary
#1B40A0 #A0381B #83A01B
monochromatic
#091637 #122B6C #1B40A0 #2455D4 #537BE2

Accessibility & contrast

On white

9.18
#1B40A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B40A0
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B40A0#FFFFFF#000000##FFFFFF
##1B40A01.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA3
Deuteranopia (green-blind)
#00429E
Tritanopia (blue-blind)
#005969
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1b40a0;
/* rgb */ color: rgb(27, 64, 160);
/* oklch */ color: oklch(41.0% 0.162 264.3);
Tailwind
colors: {
  custom: {
    50: '#7074bd',
    500: '#1b40a0',
    950: '#000000',
  },
}
SCSS
$custom: #1b40a0;
$custom-light: #7074bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1b40a0",
  "rgb": {
    "r": 27,
    "g": 64,
    "b": 160
  },
  "hsl": {
    "h": 223.308,
    "s": 71.123,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40971,
    "c": 0.16153,
    "h": 264.3
  },
  "luminance": 0.06438
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B40A0

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

Preview Lab → · Contrast checker → · Palette generator →

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