#1B478D#1B478D

#1B478D is a dark, vivid blue. Relative luminance 0.067; OKLCH L 40.9% C 0.126 H 259.5°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#1B478D
RGBrgb(27, 71, 141)
HSLhsl(217, 68%, 33%)
HSVhsv(217, 81%, 55%)
CMYKcmyk(80.9%, 49.6%, 0%, 44.7%)
CIE-LABlab(31.02, 11.88, -43.14)
CIE-LCHlch(31.02, 44.74, 285.39°)
OKLaboklab(40.92% -0.023 -0.124)
OKLCHoklch(40.92% 0.126 259.5)
XYZxyz(7.5112, 6.6617, 26.0841)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B478D #8D611B
analogous
#1B808D #1B478D #281B8D
triadic
#1B478D #8D1B47 #478D1B
tetradic
#1B478D #8D1B80 #8D611B #1B8D28
square
#1B478D #8D1B80 #8D611B #1B8D28
split-complementary
#1B478D #8D281B #808D1B
monochromatic
#071326 #112D5A #1B478D #2561C0 #4780DC

Accessibility & contrast

On white

9.00
#1B478D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#1B478D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B478D
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B478D#FFFFFF#000000##FFFFFF
##1B478D1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4F90
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#005863
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1b478d;
/* rgb */ color: rgb(27, 71, 141);
/* oklch */ color: oklch(40.9% 0.126 259.5);
Tailwind
colors: {
  custom: {
    50: '#6a79af',
    500: '#1b478d',
    950: '#000000',
  },
}
SCSS
$custom: #1b478d;
$custom-light: #6a79af;
$custom-dark: #000000;
JSON
{
  "hex": "#1b478d",
  "rgb": {
    "r": 27,
    "g": 71,
    "b": 141
  },
  "hsl": {
    "h": 216.842,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.40915,
    "c": 0.12612,
    "h": 259.5
  },
  "luminance": 0.06663
}

Semantic roles & 50–950 ramp

primary
#1B478D
secondary
#BD8F46
accent
#A83DEB
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1B478D

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

Preview Lab → · Contrast checker → · Palette generator →

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