#1B3D98#1B3D98

#1B3D98 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.6% C 0.154 H 264.6°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#1B3D98
RGBrgb(27, 61, 152)
HSLhsl(224, 70%, 35%)
HSVhsv(224, 82%, 60%)
CMYKcmyk(82.2%, 59.9%, 0%, 40.4%)
CIE-LABlab(29.00, 23.20, -53.16)
CIE-LCHlch(29.00, 58.00, 293.58°)
OKLaboklab(39.64% -0.0145 -0.1537)
OKLCHoklch(39.64% 0.154 264.6)
XYZxyz(7.7862, 5.8366, 30.4159)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3D98 #98761B
analogous
#1B7B98 #1B3D98 #381B98
triadic
#1B3D98 #981B3D #3D981B
tetradic
#1B3D98 #981B7B #98761B #1B9838
square
#1B3D98 #981B7B #98761B #1B9838
split-complementary
#1B3D98 #98381B #7B981B
monochromatic
#091330 #122864 #1B3D98 #2452CC #4E75E0

Accessibility & contrast

On white

9.69
#1B3D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#1B3D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3D98
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3D98#FFFFFF#000000##FFFFFF
##1B3D981.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b3d98;
/* rgb */ color: rgb(27, 61, 152);
/* oklch */ color: oklch(39.6% 0.154 264.6);
Tailwind
colors: {
  custom: {
    50: '#6e72b7',
    500: '#1b3d98',
    950: '#000000',
  },
}
SCSS
$custom: #1b3d98;
$custom-light: #6e72b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3d98",
  "rgb": {
    "r": 27,
    "g": 61,
    "b": 152
  },
  "hsl": {
    "h": 223.68,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39644,
    "c": 0.15435,
    "h": 264.6
  },
  "luminance": 0.05837
}

Semantic roles & 50–950 ramp

primary
#1B3D98
secondary
#C2A24D
accent
#BC3BED
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1B3D98

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

Preview Lab → · Contrast checker → · Palette generator →

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