#1B40AA#1B40AA

#1B40AA is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.9% C 0.175 H 264.8°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#1B40AA
RGBrgb(27, 64, 170)
HSLhsl(224, 73%, 39%)
HSVhsv(224, 84%, 67%)
CMYKcmyk(84.1%, 62.4%, 0%, 33.3%)
CIE-LABlab(31.35, 28.26, -60.20)
CIE-LCHlch(31.35, 66.50, 295.15°)
OKLaboklab(41.88% -0.0158 -0.1742)
OKLCHoklch(41.88% 0.175 264.8)
XYZxyz(9.5385, 6.8009, 38.8324)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B40AA #AA851B
analogous
#1B87AA #1B40AA #3E1BAA
triadic
#1B40AA #AA1B40 #40AA1B
tetradic
#1B40AA #AA1B87 #AA851B #1BAA3E
square
#1B40AA #AA1B87 #AA851B #1BAA3E
split-complementary
#1B40AA #AA3E1B #87AA1B
monochromatic
#0A1840 #132C75 #1B40AA #2655DC #5B7EE5

Accessibility & contrast

On white

8.90
#1B40AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#1B40AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B40AA
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B40AA#FFFFFF#000000##FFFFFF
##1B40AA1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#0043A8
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1b40aa;
/* rgb */ color: rgb(27, 64, 170);
/* oklch */ color: oklch(41.9% 0.175 264.8);
Tailwind
colors: {
  custom: {
    50: '#7374c4',
    500: '#1b40aa',
    950: '#000000',
  },
}
SCSS
$custom: #1b40aa;
$custom-light: #7374c4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b40aa",
  "rgb": {
    "r": 27,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 224.476,
    "s": 72.589,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41879,
    "c": 0.17497,
    "h": 264.8
  },
  "luminance": 0.06802
}

Semantic roles & 50–950 ramp

primary
#1B40AA
secondary
#C9AC58
accent
#C039EF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #1B40AA

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

Preview Lab → · Contrast checker → · Palette generator →

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