#1B408B#1B408B

#1B408B is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.2% C 0.132 H 262.3°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#1B408B
RGBrgb(27, 64, 139)
HSLhsl(220, 67%, 33%)
HSVhsv(220, 81%, 55%)
CMYKcmyk(80.6%, 54%, 0%, 45.5%)
CIE-LABlab(28.81, 15.89, -45.49)
CIE-LCHlch(28.81, 48.18, 289.25°)
OKLaboklab(39.17% -0.0176 -0.1311)
OKLCHoklch(39.17% 0.132 262.3)
XYZxyz(6.9439, 5.7631, 25.1675)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B408B #8B661B
analogous
#1B788B #1B408B #2E1B8B
triadic
#1B408B #8B1B40 #408B1B
tetradic
#1B408B #8B1B78 #8B661B #1B8B2E
square
#1B408B #8B1B78 #8B661B #1B8B2E
split-complementary
#1B408B #8B2E1B #788B1B
monochromatic
#071125 #112858 #1B408B #2558BE #4577DB

Accessibility & contrast

On white

9.75
#1B408B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B408B
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B408B#FFFFFF#000000##FFFFFF
##1B408B1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09498E
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1b408b;
/* rgb */ color: rgb(27, 64, 139);
/* oklch */ color: oklch(39.2% 0.132 262.3);
Tailwind
colors: {
  custom: {
    50: '#6a74ad',
    500: '#1b408b',
    950: '#000000',
  },
}
SCSS
$custom: #1b408b;
$custom-light: #6a74ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1b408b",
  "rgb": {
    "r": 27,
    "g": 64,
    "b": 139
  },
  "hsl": {
    "h": 220.179,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39174,
    "c": 0.13225,
    "h": 262.3
  },
  "luminance": 0.05764
}

Semantic roles & 50–950 ramp

primary
#1B408B
secondary
#BC9545
accent
#B13DEA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1B408B

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

Preview Lab → · Contrast checker → · Palette generator →

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