#1B4098#1B4098

#1B4098 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.3% C 0.151 H 263.7°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#1B4098
RGBrgb(27, 64, 152)
HSLhsl(222, 70%, 35%)
HSVhsv(222, 82%, 60%)
CMYKcmyk(82.2%, 57.9%, 0%, 40.4%)
CIE-LABlab(29.83, 21.14, -51.81)
CIE-LCHlch(29.83, 55.95, 292.20°)
OKLaboklab(40.27% -0.0165 -0.1496)
OKLCHoklch(40.27% 0.151 263.7)
XYZxyz(7.9509, 6.1659, 30.4708)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4098 #98731B
analogous
#1B7E98 #1B4098 #351B98
triadic
#1B4098 #981B40 #40981B
tetradic
#1B4098 #981B7E #98731B #1B9835
square
#1B4098 #981B7E #98731B #1B9835
split-complementary
#1B4098 #98351B #7E981B
monochromatic
#091430 #122A64 #1B4098 #2456CC #4E79E0

Accessibility & contrast

On white

9.40
#1B4098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#1B4098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B4098
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4098#FFFFFF#000000##FFFFFF
##1B40981.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1b4098;
/* rgb */ color: rgb(27, 64, 152);
/* oklch */ color: oklch(40.3% 0.151 263.7);
Tailwind
colors: {
  custom: {
    50: '#6e74b7',
    500: '#1b4098',
    950: '#000000',
  },
}
SCSS
$custom: #1b4098;
$custom-light: #6e74b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4098",
  "rgb": {
    "r": 27,
    "g": 64,
    "b": 152
  },
  "hsl": {
    "h": 222.24,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40268,
    "c": 0.15054,
    "h": 263.7
  },
  "luminance": 0.06167
}

Semantic roles & 50–950 ramp

primary
#1B4098
secondary
#C29F4D
accent
#B83BED
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1B4098

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

Preview Lab → · Contrast checker → · Palette generator →

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