#1B3C98#1B3C98

#1B3C98 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.4% C 0.156 H 264.9°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#1B3C98
RGBrgb(27, 60, 152)
HSLhsl(224, 70%, 35%)
HSVhsv(224, 82%, 60%)
CMYKcmyk(82.2%, 60.5%, 0%, 40.4%)
CIE-LABlab(28.72, 23.89, -53.61)
CIE-LCHlch(28.72, 58.69, 294.02°)
OKLaboklab(39.44% -0.0139 -0.155)
OKLCHoklch(39.44% 0.156 264.9)
XYZxyz(7.7333, 5.7308, 30.3982)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3C98 #98771B
analogous
#1B7A98 #1B3C98 #391B98
triadic
#1B3C98 #981B3C #3C981B
tetradic
#1B3C98 #981B7A #98771B #1B9839
square
#1B3C98 #981B7A #98771B #1B9839
split-complementary
#1B3C98 #98391B #7A981B
monochromatic
#091330 #122764 #1B3C98 #2451CC #4E74E0

Accessibility & contrast

On white

9.78
#1B3C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#1B3C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3C98
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3C98#FFFFFF#000000##FFFFFF
##1B3C981.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9B
Deuteranopia (green-blind)
#003E96
Tritanopia (blue-blind)
#005364
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1b3c98;
/* rgb */ color: rgb(27, 60, 152);
/* oklch */ color: oklch(39.4% 0.156 264.9);
Tailwind
colors: {
  custom: {
    50: '#6e71b7',
    500: '#1b3c98',
    950: '#000000',
  },
}
SCSS
$custom: #1b3c98;
$custom-light: #6e71b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3c98",
  "rgb": {
    "r": 27,
    "g": 60,
    "b": 152
  },
  "hsl": {
    "h": 224.16,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39439,
    "c": 0.15561,
    "h": 264.9
  },
  "luminance": 0.05732
}

Semantic roles & 50–950 ramp

primary
#1B3C98
secondary
#C2A34D
accent
#BE3BED
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1B3C98

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

Preview Lab → · Contrast checker → · Palette generator →

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