#1B408C#1B408C

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

Color values

HEX#1B408C
RGBrgb(27, 64, 140)
HSLhsl(220, 68%, 33%)
HSVhsv(220, 81%, 55%)
CMYKcmyk(80.7%, 54.3%, 0%, 45.1%)
CIE-LABlab(28.88, 16.30, -45.98)
CIE-LCHlch(28.88, 48.79, 289.51°)
OKLaboklab(39.26% -0.0175 -0.1325)
OKLCHoklch(39.26% 0.134 262.5)
XYZxyz(7.0173, 5.7924, 25.5541)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B408C #8C671B
analogous
#1B788C #1B408C #2E1B8C
triadic
#1B408C #8C1B40 #408C1B
tetradic
#1B408C #8C1B78 #8C671B #1B8C2E
square
#1B408C #8C1B78 #8C671B #1B8C2E
split-complementary
#1B408C #8C2E1B #788C1B
monochromatic
#071125 #112959 #1B408C #2557BF #4677DB

Accessibility & contrast

On white

9.73
#1B408C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B408C
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B408C#FFFFFF#000000##FFFFFF
##1B408C1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064A8F
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#00535F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1b408c;
/* rgb */ color: rgb(27, 64, 140);
/* oklch */ color: oklch(39.3% 0.134 262.5);
Tailwind
colors: {
  custom: {
    50: '#6b74ae',
    500: '#1b408c',
    950: '#000000',
  },
}
SCSS
$custom: #1b408c;
$custom-light: #6b74ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1b408c",
  "rgb": {
    "r": 27,
    "g": 64,
    "b": 140
  },
  "hsl": {
    "h": 220.354,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39256,
    "c": 0.13367,
    "h": 262.5
  },
  "luminance": 0.05793
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B408C

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

Preview Lab → · Contrast checker → · Palette generator →

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