#1B408E#1B408E

#1B408E is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.4% C 0.137 H 262.7°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#1B408E
RGBrgb(27, 64, 142)
HSLhsl(221, 68%, 33%)
HSVhsv(221, 81%, 56%)
CMYKcmyk(81%, 54.9%, 0%, 44.3%)
CIE-LABlab(29.04, 17.11, -46.97)
CIE-LCHlch(29.04, 49.99, 290.01°)
OKLaboklab(39.42% -0.0173 -0.1354)
OKLCHoklch(39.42% 0.137 262.7)
XYZxyz(7.1661, 5.8520, 26.3378)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B408E #8E691B
analogous
#1B798E #1B408E #301B8E
triadic
#1B408E #8E1B40 #408E1B
tetradic
#1B408E #8E1B79 #8E691B #1B8E30
square
#1B408E #8E1B79 #8E691B #1B8E30
split-complementary
#1B408E #8E301B #798E1B
monochromatic
#071227 #11295B #1B408E #2557C1 #4777DC

Accessibility & contrast

On white

9.67
#1B408E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#1B408E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B408E
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B408E#FFFFFF#000000##FFFFFF
##1B408E1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014A91
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1b408e;
/* rgb */ color: rgb(27, 64, 142);
/* oklch */ color: oklch(39.4% 0.137 262.7);
Tailwind
colors: {
  custom: {
    50: '#6b74b0',
    500: '#1b408e',
    950: '#000000',
  },
}
SCSS
$custom: #1b408e;
$custom-light: #6b74b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b408e",
  "rgb": {
    "r": 27,
    "g": 64,
    "b": 142
  },
  "hsl": {
    "h": 220.696,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39421,
    "c": 0.13652,
    "h": 262.7
  },
  "luminance": 0.05853
}

Semantic roles & 50–950 ramp

primary
#1B408E
secondary
#BE9847
accent
#B33DEB
background
#F6F7FA
surface
#ECEDF5
border
#C7C8CF
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1B408E

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

Preview Lab → · Contrast checker → · Palette generator →

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