#1B418F#1B418F

#1B418F is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.7% C 0.137 H 262.5°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#1B418F
RGBrgb(27, 65, 143)
HSLhsl(220, 68%, 33%)
HSVhsv(220, 81%, 56%)
CMYKcmyk(81.1%, 54.5%, 0%, 43.9%)
CIE-LABlab(29.40, 16.82, -46.99)
CIE-LCHlch(29.40, 49.91, 289.70°)
OKLaboklab(39.72% -0.0179 -0.1355)
OKLCHoklch(39.72% 0.137 262.5)
XYZxyz(7.2984, 5.9959, 26.7539)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B418F #8F691B
analogous
#1B7B8F #1B418F #2F1B8F
triadic
#1B418F #8F1B41 #418F1B
tetradic
#1B418F #8F1B7B #8F691B #1B8F2F
square
#1B418F #8F1B7B #8F691B #1B8F2F
split-complementary
#1B418F #8F2F1B #7B8F1B
monochromatic
#081228 #112A5C #1B418F #2558C2 #4879DC

Accessibility & contrast

On white

9.55
#1B418F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#1B418F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B418F
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B418F#FFFFFF#000000##FFFFFF
##1B418F1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034B92
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#005461
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1b418f;
/* rgb */ color: rgb(27, 65, 143);
/* oklch */ color: oklch(39.7% 0.137 262.5);
Tailwind
colors: {
  custom: {
    50: '#6b75b0',
    500: '#1b418f',
    950: '#000000',
  },
}
SCSS
$custom: #1b418f;
$custom-light: #6b75b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b418f",
  "rgb": {
    "r": 27,
    "g": 65,
    "b": 143
  },
  "hsl": {
    "h": 220.345,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39723,
    "c": 0.13664,
    "h": 262.5
  },
  "luminance": 0.05997
}

Semantic roles & 50–950 ramp

primary
#1B418F
secondary
#BE9748
accent
#B23DEB
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1B418F

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

Preview Lab → · Contrast checker → · Palette generator →

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