#1B478F#1B478F

#1B478F is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.1% C 0.129 H 259.9°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#1B478F
RGBrgb(27, 71, 143)
HSLhsl(217, 68%, 33%)
HSVhsv(217, 81%, 56%)
CMYKcmyk(81.1%, 50.3%, 0%, 43.9%)
CIE-LABlab(31.16, 12.69, -44.14)
CIE-LCHlch(31.16, 45.93, 286.04°)
OKLaboklab(41.07% -0.0226 -0.1269)
OKLCHoklch(41.07% 0.129 259.9)
XYZxyz(7.6614, 6.7218, 26.8749)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B478F #8F631B
analogous
#1B818F #1B478F #291B8F
triadic
#1B478F #8F1B47 #478F1B
tetradic
#1B478F #8F1B81 #8F631B #1B8F29
square
#1B478F #8F1B81 #8F631B #1B8F29
split-complementary
#1B478F #8F291B #818F1B
monochromatic
#081428 #112D5C #1B478F #2561C2 #4880DC

Accessibility & contrast

On white

8.96
#1B478F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B478F
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B478F#FFFFFF#000000##FFFFFF
##1B478F1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4F92
Deuteranopia (green-blind)
#00448E
Tritanopia (blue-blind)
#005864
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1b478f;
/* rgb */ color: rgb(27, 71, 143);
/* oklch */ color: oklch(41.1% 0.129 259.9);
Tailwind
colors: {
  custom: {
    50: '#6b79b0',
    500: '#1b478f',
    950: '#000000',
  },
}
SCSS
$custom: #1b478f;
$custom-light: #6b79b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b478f",
  "rgb": {
    "r": 27,
    "g": 71,
    "b": 143
  },
  "hsl": {
    "h": 217.241,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.41068,
    "c": 0.12895,
    "h": 259.9
  },
  "luminance": 0.06723
}

Semantic roles & 50–950 ramp

primary
#1B478F
secondary
#BE9148
accent
#A93DEB
background
#F6F7FA
surface
#ECEDF5
border
#C7C8CF
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1B478F

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

Preview Lab → · Contrast checker → · Palette generator →

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