#1B418C#1B418C

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

Color values

HEX#1B418C
RGBrgb(27, 65, 140)
HSLhsl(220, 68%, 33%)
HSVhsv(220, 81%, 55%)
CMYKcmyk(80.7%, 53.6%, 0%, 45.1%)
CIE-LABlab(29.17, 15.60, -45.51)
CIE-LCHlch(29.17, 48.11, 288.92°)
OKLaboklab(39.48% -0.0183 -0.1311)
OKLCHoklch(39.48% 0.132 262.1)
XYZxyz(7.0742, 5.9062, 25.5730)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B418C #8C661B
analogous
#1B798C #1B418C #2D1B8C
triadic
#1B418C #8C1B41 #418C1B
tetradic
#1B418C #8C1B79 #8C661B #1B8C2D
square
#1B418C #8C1B79 #8C661B #1B8C2D
split-complementary
#1B418C #8C2D1B #798C1B
monochromatic
#071125 #112959 #1B418C #2559BF #4678DB

Accessibility & contrast

On white

9.63
#1B418C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B418C
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B418C#FFFFFF#000000##FFFFFF
##1B418C1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4A8F
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1b418c;
/* rgb */ color: rgb(27, 65, 140);
/* oklch */ color: oklch(39.5% 0.132 262.1);
Tailwind
colors: {
  custom: {
    50: '#6b75ae',
    500: '#1b418c',
    950: '#000000',
  },
}
SCSS
$custom: #1b418c;
$custom-light: #6b75ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1b418c",
  "rgb": {
    "r": 27,
    "g": 65,
    "b": 140
  },
  "hsl": {
    "h": 219.823,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39478,
    "c": 0.13238,
    "h": 262.1
  },
  "luminance": 0.05907
}

Semantic roles & 50–950 ramp

primary
#1B418C
secondary
#BD9546
accent
#B03DEB
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1B418C

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

Preview Lab → · Contrast checker → · Palette generator →

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