#1B3A98#1B3A98

#1B3A98 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.0% C 0.158 H 265.4°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#1B3A98
RGBrgb(27, 58, 152)
HSLhsl(225, 70%, 35%)
HSVhsv(225, 82%, 60%)
CMYKcmyk(82.2%, 61.8%, 0%, 40.4%)
CIE-LABlab(28.18, 25.26, -54.49)
CIE-LCHlch(28.18, 60.06, 294.87°)
OKLaboklab(39.03% -0.0126 -0.1576)
OKLCHoklch(39.03% 0.158 265.4)
XYZxyz(7.6305, 5.5252, 30.3640)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3A98 #98791B
analogous
#1B7898 #1B3A98 #3B1B98
triadic
#1B3A98 #981B3A #3A981B
tetradic
#1B3A98 #981B78 #98791B #1B983B
square
#1B3A98 #981B78 #98791B #1B983B
split-complementary
#1B3A98 #983B1B #78981B
monochromatic
#091230 #122664 #1B3A98 #244ECC #4E72E0

Accessibility & contrast

On white

9.98
#1B3A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#1B3A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3A98
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3A98#FFFFFF#000000##FFFFFF
##1B3A981.009.982.119.98
#FFFFFF9.981.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489B
Deuteranopia (green-blind)
#003D96
Tritanopia (blue-blind)
#005263
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1b3a98;
/* rgb */ color: rgb(27, 58, 152);
/* oklch */ color: oklch(39.0% 0.158 265.4);
Tailwind
colors: {
  custom: {
    50: '#6e6fb7',
    500: '#1b3a98',
    950: '#000000',
  },
}
SCSS
$custom: #1b3a98;
$custom-light: #6e6fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3a98",
  "rgb": {
    "r": 27,
    "g": 58,
    "b": 152
  },
  "hsl": {
    "h": 225.12,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39035,
    "c": 0.15813,
    "h": 265.4
  },
  "luminance": 0.05526
}

Semantic roles & 50–950 ramp

primary
#1B3A98
secondary
#C2A54D
accent
#C13BED
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1B3A98

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

Preview Lab → · Contrast checker → · Palette generator →

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