#1B408F#1B408F

#1B408F is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.5% C 0.138 H 262.8°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#1B408F
RGBrgb(27, 64, 143)
HSLhsl(221, 68%, 33%)
HSVhsv(221, 81%, 56%)
CMYKcmyk(81.1%, 55.2%, 0%, 43.9%)
CIE-LABlab(29.11, 17.51, -47.46)
CIE-LCHlch(29.11, 50.59, 290.26°)
OKLaboklab(39.5% -0.0172 -0.1369)
OKLCHoklch(39.5% 0.138 262.8)
XYZxyz(7.2415, 5.8821, 26.7350)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B408F #8F6A1B
analogous
#1B7A8F #1B408F #301B8F
triadic
#1B408F #8F1B40 #408F1B
tetradic
#1B408F #8F1B7A #8F6A1B #1B8F30
square
#1B408F #8F1B7A #8F6A1B #1B8F30
split-complementary
#1B408F #8F301B #7A8F1B
monochromatic
#081228 #11295C #1B408F #2557C2 #4877DC

Accessibility & contrast

On white

9.65
#1B408F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#1B408F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B408F
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B408F#FFFFFF#000000##FFFFFF
##1B408F1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1b408f;
/* rgb */ color: rgb(27, 64, 143);
/* oklch */ color: oklch(39.5% 0.138 262.8);
Tailwind
colors: {
  custom: {
    50: '#6b74b0',
    500: '#1b408f',
    950: '#000000',
  },
}
SCSS
$custom: #1b408f;
$custom-light: #6b74b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b408f",
  "rgb": {
    "r": 27,
    "g": 64,
    "b": 143
  },
  "hsl": {
    "h": 220.862,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39504,
    "c": 0.13794,
    "h": 262.8
  },
  "luminance": 0.05883
}

Semantic roles & 50–950 ramp

primary
#1B408F
secondary
#BE9848
accent
#B33DEB
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1B408F

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

Preview Lab → · Contrast checker → · Palette generator →

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