#1B4298#1B4298

#1B4298 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.7% C 0.148 H 263.1°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#1B4298
RGBrgb(27, 66, 152)
HSLhsl(221, 70%, 35%)
HSVhsv(221, 82%, 60%)
CMYKcmyk(82.2%, 56.6%, 0%, 40.4%)
CIE-LABlab(30.39, 19.77, -50.89)
CIE-LCHlch(30.39, 54.60, 291.23°)
OKLaboklab(40.69% -0.0178 -0.1469)
OKLCHoklch(40.69% 0.148 263.1)
XYZxyz(8.0657, 6.3955, 30.5090)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4298 #98711B
analogous
#1B8098 #1B4298 #331B98
triadic
#1B4298 #981B42 #42981B
tetradic
#1B4298 #981B80 #98711B #1B9833
square
#1B4298 #981B80 #98711B #1B9833
split-complementary
#1B4298 #98331B #80981B
monochromatic
#091530 #122B64 #1B4298 #2459CC #4E7BE0

Accessibility & contrast

On white

9.21
#1B4298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#1B4298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B4298
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4298#FFFFFF#000000##FFFFFF
##1B42981.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#005766
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1b4298;
/* rgb */ color: rgb(27, 66, 152);
/* oklch */ color: oklch(40.7% 0.148 263.1);
Tailwind
colors: {
  custom: {
    50: '#6e75b7',
    500: '#1b4298',
    950: '#000000',
  },
}
SCSS
$custom: #1b4298;
$custom-light: #6e75b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4298",
  "rgb": {
    "r": 27,
    "g": 66,
    "b": 152
  },
  "hsl": {
    "h": 221.28,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40691,
    "c": 0.148,
    "h": 263.1
  },
  "luminance": 0.06396
}

Semantic roles & 50–950 ramp

primary
#1B4298
secondary
#C29D4D
accent
#B53BED
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1B4298

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

Preview Lab → · Contrast checker → · Palette generator →

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