#1B4795#1B4795

#1B4795 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.5% C 0.137 H 260.9°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#1B4795
RGBrgb(27, 71, 149)
HSLhsl(218, 69%, 35%)
HSVhsv(218, 82%, 58%)
CMYKcmyk(81.9%, 52.3%, 0%, 41.6%)
CIE-LABlab(31.60, 15.12, -47.11)
CIE-LCHlch(31.60, 49.47, 287.80°)
OKLaboklab(41.54% -0.0218 -0.1357)
OKLCHoklch(41.54% 0.137 260.9)
XYZxyz(8.1281, 6.9084, 29.3330)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4795 #95691B
analogous
#1B8495 #1B4795 #2C1B95
triadic
#1B4795 #951B47 #47951B
tetradic
#1B4795 #951B84 #95691B #1B952C
square
#1B4795 #951B84 #95691B #1B952C
split-complementary
#1B4795 #952C1B #84951B
monochromatic
#08162D #122E61 #1B4795 #2460C9 #4C81DF

Accessibility & contrast

On white

8.82
#1B4795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#1B4795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B4795
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4795#FFFFFF#000000##FFFFFF
##1B47951.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135098
Deuteranopia (green-blind)
#004593
Tritanopia (blue-blind)
#005A67
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1b4795;
/* rgb */ color: rgb(27, 71, 149);
/* oklch */ color: oklch(41.5% 0.137 260.9);
Tailwind
colors: {
  custom: {
    50: '#6c79b5',
    500: '#1b4795',
    950: '#000000',
  },
}
SCSS
$custom: #1b4795;
$custom-light: #6c79b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4795",
  "rgb": {
    "r": 27,
    "g": 71,
    "b": 149
  },
  "hsl": {
    "h": 218.361,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.41537,
    "c": 0.13742,
    "h": 260.9
  },
  "luminance": 0.06909
}

Semantic roles & 50–950 ramp

primary
#1B4795
secondary
#C1964B
accent
#AC3CEC
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1B4795

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

Preview Lab → · Contrast checker → · Palette generator →

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