#1B408D#1B408D

#1B408D is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.3% C 0.135 H 262.6°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#1B408D
RGBrgb(27, 64, 141)
HSLhsl(221, 68%, 33%)
HSVhsv(221, 81%, 55%)
CMYKcmyk(80.9%, 54.6%, 0%, 44.7%)
CIE-LABlab(28.96, 16.70, -46.48)
CIE-LCHlch(28.96, 49.39, 289.77°)
OKLaboklab(39.34% -0.0174 -0.134)
OKLCHoklch(39.34% 0.135 262.6)
XYZxyz(7.0914, 5.8221, 25.9442)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B408D #8D681B
analogous
#1B798D #1B408D #2F1B8D
triadic
#1B408D #8D1B40 #408D1B
tetradic
#1B408D #8D1B79 #8D681B #1B8D2F
square
#1B408D #8D1B79 #8D681B #1B8D2F
split-complementary
#1B408D #8D2F1B #798D1B
monochromatic
#071126 #11295A #1B408D #2557C0 #4777DC

Accessibility & contrast

On white

9.70
#1B408D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#1B408D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B408D
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B408D#FFFFFF#000000##FFFFFF
##1B408D1.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044A90
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1b408d;
/* rgb */ color: rgb(27, 64, 141);
/* oklch */ color: oklch(39.3% 0.135 262.6);
Tailwind
colors: {
  custom: {
    50: '#6b74af',
    500: '#1b408d',
    950: '#000000',
  },
}
SCSS
$custom: #1b408d;
$custom-light: #6b74af;
$custom-dark: #000000;
JSON
{
  "hex": "#1b408d",
  "rgb": {
    "r": 27,
    "g": 64,
    "b": 141
  },
  "hsl": {
    "h": 220.526,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39338,
    "c": 0.1351,
    "h": 262.6
  },
  "luminance": 0.05823
}

Semantic roles & 50–950 ramp

primary
#1B408D
secondary
#BD9746
accent
#B23DEB
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1B408D

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

Preview Lab → · Contrast checker → · Palette generator →

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