#1B478A#1B478A

#1B478A is a dark, vivid blue. Relative luminance 0.066; OKLCH L 40.7% C 0.122 H 258.9°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#1B478A
RGBrgb(27, 71, 138)
HSLhsl(216, 67%, 32%)
HSVhsv(216, 80%, 54%)
CMYKcmyk(80.4%, 48.6%, 0%, 45.9%)
CIE-LABlab(30.82, 10.66, -41.63)
CIE-LCHlch(30.82, 42.97, 284.36°)
OKLaboklab(40.69% -0.0235 -0.1196)
OKLCHoklch(40.69% 0.122 258.9)
XYZxyz(7.2910, 6.5736, 24.9244)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B478A #8A5E1B
analogous
#1B7F8A #1B478A #261B8A
triadic
#1B478A #8A1B47 #478A1B
tetradic
#1B478A #8A1B7F #8A5E1B #1B8A26
square
#1B478A #8A1B7F #8A5E1B #1B8A26
split-complementary
#1B478A #8A261B #7F8A1B
monochromatic
#071224 #112D57 #1B478A #2561BD #4580DB

Accessibility & contrast

On white

9.07
#1B478A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#1B478A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B478A
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B478A#FFFFFF#000000##FFFFFF
##1B478A1.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224E8C
Deuteranopia (green-blind)
#014489
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1b478a;
/* rgb */ color: rgb(27, 71, 138);
/* oklch */ color: oklch(40.7% 0.122 258.9);
Tailwind
colors: {
  custom: {
    50: '#6a79ad',
    500: '#1b478a',
    950: '#000000',
  },
}
SCSS
$custom: #1b478a;
$custom-light: #6a79ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1b478a",
  "rgb": {
    "r": 27,
    "g": 71,
    "b": 138
  },
  "hsl": {
    "h": 216.216,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.40688,
    "c": 0.12184,
    "h": 258.9
  },
  "luminance": 0.06574
}

Semantic roles & 50–950 ramp

primary
#1B478A
secondary
#BC8D45
accent
#A63EEA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #1B478A

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

Preview Lab → · Contrast checker → · Palette generator →

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