#1B4F98#1B4F98

#1B4F98 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.6% C 0.132 H 257.9°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#1B4F98
RGBrgb(27, 79, 152)
HSLhsl(215, 70%, 35%)
HSVhsv(215, 82%, 60%)
CMYKcmyk(82.2%, 48%, 0%, 40.4%)
CIE-LABlab(34.17, 10.91, -44.77)
CIE-LCHlch(34.17, 46.08, 283.69°)
OKLaboklab(43.58% -0.0276 -0.1286)
OKLCHoklch(43.58% 0.132 257.9)
XYZxyz(8.9134, 8.0909, 30.7916)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4F98 #98641B
analogous
#1B8D98 #1B4F98 #261B98
triadic
#1B4F98 #981B4F #4F981B
tetradic
#1B4F98 #981B8D #98641B #1B9826
square
#1B4F98 #981B8D #98641B #1B9826
split-complementary
#1B4F98 #98261B #8D981B
monochromatic
#091930 #123464 #1B4F98 #246ACC #4E8AE0

Accessibility & contrast

On white

8.02
#1B4F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#1B4F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B4F98
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4F98#FFFFFF#000000##FFFFFF
##1B4F981.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26569B
Deuteranopia (green-blind)
#004B97
Tritanopia (blue-blind)
#00616C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1b4f98;
/* rgb */ color: rgb(27, 79, 152);
/* oklch */ color: oklch(43.6% 0.132 257.9);
Tailwind
colors: {
  custom: {
    50: '#6d7fb7',
    500: '#1b4f98',
    950: '#000000',
  },
}
SCSS
$custom: #1b4f98;
$custom-light: #6d7fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4f98",
  "rgb": {
    "r": 27,
    "g": 79,
    "b": 152
  },
  "hsl": {
    "h": 215.04,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.43579,
    "c": 0.13158,
    "h": 257.9
  },
  "luminance": 0.08092
}

Semantic roles & 50–950 ramp

primary
#1B4F98
secondary
#C2914D
accent
#A33BED
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #1B4F98

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

Preview Lab → · Contrast checker → · Palette generator →

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