#1B418D#1B418D

#1B418D is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.6% C 0.134 H 262.2°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#1B418D
RGBrgb(27, 65, 141)
HSLhsl(220, 68%, 33%)
HSVhsv(220, 81%, 55%)
CMYKcmyk(80.9%, 53.9%, 0%, 44.7%)
CIE-LABlab(29.25, 16.01, -46.00)
CIE-LCHlch(29.25, 48.71, 289.19°)
OKLaboklab(39.56% -0.0182 -0.1326)
OKLCHoklch(39.56% 0.134 262.2)
XYZxyz(7.1483, 5.9359, 25.9631)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B418D #8D671B
analogous
#1B7A8D #1B418D #2E1B8D
triadic
#1B418D #8D1B41 #418D1B
tetradic
#1B418D #8D1B7A #8D671B #1B8D2E
square
#1B418D #8D1B7A #8D671B #1B8D2E
split-complementary
#1B418D #8D2E1B #7A8D1B
monochromatic
#071226 #11295A #1B418D #2559C0 #4778DC

Accessibility & contrast

On white

9.60
#1B418D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#1B418D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B418D
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B418D#FFFFFF#000000##FFFFFF
##1B418D1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094A90
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#005460
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1b418d;
/* rgb */ color: rgb(27, 65, 141);
/* oklch */ color: oklch(39.6% 0.134 262.2);
Tailwind
colors: {
  custom: {
    50: '#6b75af',
    500: '#1b418d',
    950: '#000000',
  },
}
SCSS
$custom: #1b418d;
$custom-light: #6b75af;
$custom-dark: #000000;
JSON
{
  "hex": "#1b418d",
  "rgb": {
    "r": 27,
    "g": 65,
    "b": 141
  },
  "hsl": {
    "h": 220,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39559,
    "c": 0.1338,
    "h": 262.2
  },
  "luminance": 0.05937
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B418D

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

Preview Lab → · Contrast checker → · Palette generator →

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