#1B408A#1B408A

#1B408A is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.1% C 0.131 H 262.2°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#1B408A
RGBrgb(27, 64, 138)
HSLhsl(220, 67%, 32%)
HSVhsv(220, 80%, 54%)
CMYKcmyk(80.4%, 53.6%, 0%, 45.9%)
CIE-LABlab(28.73, 15.48, -44.99)
CIE-LCHlch(28.73, 47.58, 288.99°)
OKLaboklab(39.09% -0.0177 -0.1296)
OKLCHoklch(39.09% 0.131 262.2)
XYZxyz(6.8712, 5.7340, 24.7845)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B408A #8A651B
analogous
#1B788A #1B408A #2D1B8A
triadic
#1B408A #8A1B40 #408A1B
tetradic
#1B408A #8A1B78 #8A651B #1B8A2D
square
#1B408A #8A1B78 #8A651B #1B8A2D
split-complementary
#1B408A #8A2D1B #788A1B
monochromatic
#071124 #112857 #1B408A #2558BD #4577DB

Accessibility & contrast

On white

9.78
#1B408A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#1B408A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B408A
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B408A#FFFFFF#000000##FFFFFF
##1B408A1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C498D
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#00525E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1b408a;
/* rgb */ color: rgb(27, 64, 138);
/* oklch */ color: oklch(39.1% 0.131 262.2);
Tailwind
colors: {
  custom: {
    50: '#6a74ad',
    500: '#1b408a',
    950: '#000000',
  },
}
SCSS
$custom: #1b408a;
$custom-light: #6a74ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1b408a",
  "rgb": {
    "r": 27,
    "g": 64,
    "b": 138
  },
  "hsl": {
    "h": 220,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39093,
    "c": 0.13082,
    "h": 262.2
  },
  "luminance": 0.05735
}

Semantic roles & 50–950 ramp

primary
#1B408A
secondary
#BC9445
accent
#B13EEA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1B408A

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

Preview Lab → · Contrast checker → · Palette generator →

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