#1B478E#1B478E

#1B478E is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.0% C 0.128 H 259.7°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#1B478E
RGBrgb(27, 71, 142)
HSLhsl(217, 68%, 33%)
HSVhsv(217, 81%, 56%)
CMYKcmyk(81%, 50%, 0%, 44.3%)
CIE-LABlab(31.09, 12.28, -43.64)
CIE-LCHlch(31.09, 45.33, 285.72°)
OKLaboklab(40.99% -0.0228 -0.1255)
OKLCHoklch(40.99% 0.128 259.7)
XYZxyz(7.5859, 6.6916, 26.4777)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B478E #8E621B
analogous
#1B808E #1B478E #281B8E
triadic
#1B478E #8E1B47 #478E1B
tetradic
#1B478E #8E1B80 #8E621B #1B8E28
square
#1B478E #8E1B80 #8E621B #1B8E28
split-complementary
#1B478E #8E281B #808E1B
monochromatic
#071427 #112D5B #1B478E #2561C1 #4780DC

Accessibility & contrast

On white

8.98
#1B478E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#1B478E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B478E
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B478E#FFFFFF#000000##FFFFFF
##1B478E1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b478e;
/* rgb */ color: rgb(27, 71, 142);
/* oklch */ color: oklch(41.0% 0.128 259.7);
Tailwind
colors: {
  custom: {
    50: '#6b79b0',
    500: '#1b478e',
    950: '#000000',
  },
}
SCSS
$custom: #1b478e;
$custom-light: #6b79b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b478e",
  "rgb": {
    "r": 27,
    "g": 71,
    "b": 142
  },
  "hsl": {
    "h": 217.043,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.40991,
    "c": 0.12753,
    "h": 259.7
  },
  "luminance": 0.06692
}

Semantic roles & 50–950 ramp

primary
#1B478E
secondary
#BE9047
accent
#A83DEB
background
#F6F7FA
surface
#ECEDF5
border
#C7C8CF
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1B478E

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

Preview Lab → · Contrast checker → · Palette generator →

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