#1B3B98#1B3B98

#1B3B98 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.2% C 0.157 H 265.2°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#1B3B98
RGBrgb(27, 59, 152)
HSLhsl(225, 70%, 35%)
HSVhsv(225, 82%, 60%)
CMYKcmyk(82.2%, 61.2%, 0%, 40.4%)
CIE-LABlab(28.45, 24.58, -54.05)
CIE-LCHlch(28.45, 59.38, 294.45°)
OKLaboklab(39.24% -0.0133 -0.1563)
OKLCHoklch(39.24% 0.157 265.2)
XYZxyz(7.6815, 5.6270, 30.3810)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3B98 #98781B
analogous
#1B7998 #1B3B98 #3A1B98
triadic
#1B3B98 #981B3B #3B981B
tetradic
#1B3B98 #981B79 #98781B #1B983A
square
#1B3B98 #981B79 #98781B #1B983A
split-complementary
#1B3B98 #983A1B #79981B
monochromatic
#091330 #122764 #1B3B98 #244FCC #4E73E0

Accessibility & contrast

On white

9.88
#1B3B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#1B3B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3B98
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3B98#FFFFFF#000000##FFFFFF
##1B3B981.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#003D96
Tritanopia (blue-blind)
#005363
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1b3b98;
/* rgb */ color: rgb(27, 59, 152);
/* oklch */ color: oklch(39.2% 0.157 265.2);
Tailwind
colors: {
  custom: {
    50: '#6e70b7',
    500: '#1b3b98',
    950: '#000000',
  },
}
SCSS
$custom: #1b3b98;
$custom-light: #6e70b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3b98",
  "rgb": {
    "r": 27,
    "g": 59,
    "b": 152
  },
  "hsl": {
    "h": 224.64,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39236,
    "c": 0.15687,
    "h": 265.2
  },
  "luminance": 0.05628
}

Semantic roles & 50–950 ramp

primary
#1B3B98
secondary
#C2A44D
accent
#BF3BED
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1B3B98

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

Preview Lab → · Contrast checker → · Palette generator →

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