#1B4D98#1B4D98

#1B4D98 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.1% C 0.134 H 258.8°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#1B4D98
RGBrgb(27, 77, 152)
HSLhsl(216, 70%, 35%)
HSVhsv(216, 82%, 60%)
CMYKcmyk(82.2%, 49.3%, 0%, 40.4%)
CIE-LABlab(33.58, 12.26, -45.73)
CIE-LCHlch(33.58, 47.35, 285.00°)
OKLaboklab(43.12% -0.026 -0.1315)
OKLCHoklch(43.12% 0.134 258.8)
XYZxyz(8.7713, 7.8067, 30.7442)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4D98 #98661B
analogous
#1B8B98 #1B4D98 #281B98
triadic
#1B4D98 #981B4D #4D981B
tetradic
#1B4D98 #981B8B #98661B #1B9828
square
#1B4D98 #981B8B #98661B #1B9828
split-complementary
#1B4D98 #98281B #8B981B
monochromatic
#091830 #123364 #1B4D98 #2467CC #4E88E0

Accessibility & contrast

On white

8.20
#1B4D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#1B4D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B4D98
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4D98#FFFFFF#000000##FFFFFF
##1B4D981.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21559B
Deuteranopia (green-blind)
#004A97
Tritanopia (blue-blind)
#005F6B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1b4d98;
/* rgb */ color: rgb(27, 77, 152);
/* oklch */ color: oklch(43.1% 0.134 258.8);
Tailwind
colors: {
  custom: {
    50: '#6d7eb7',
    500: '#1b4d98',
    950: '#000000',
  },
}
SCSS
$custom: #1b4d98;
$custom-light: #6d7eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4d98",
  "rgb": {
    "r": 27,
    "g": 77,
    "b": 152
  },
  "hsl": {
    "h": 216,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.43121,
    "c": 0.13406,
    "h": 258.8
  },
  "luminance": 0.07808
}

Semantic roles & 50–950 ramp

primary
#1B4D98
secondary
#C2934D
accent
#A63BED
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1B4D98

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

Preview Lab → · Contrast checker → · Palette generator →

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