#1B3F8D#1B3F8D

#1B3F8D is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.1% C 0.136 H 263.0°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#1B3F8D
RGBrgb(27, 63, 141)
HSLhsl(221, 68%, 33%)
HSVhsv(221, 81%, 55%)
CMYKcmyk(80.9%, 55.3%, 0%, 44.7%)
CIE-LABlab(28.67, 17.40, -46.94)
CIE-LCHlch(28.67, 50.06, 290.33°)
OKLaboklab(39.12% -0.0166 -0.1354)
OKLCHoklch(39.12% 0.136 263)
XYZxyz(7.0355, 5.7103, 25.9255)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3F8D #8D691B
analogous
#1B788D #1B3F8D #301B8D
triadic
#1B3F8D #8D1B3F #3F8D1B
tetradic
#1B3F8D #8D1B78 #8D691B #1B8D30
square
#1B3F8D #8D1B78 #8D691B #1B8D30
split-complementary
#1B3F8D #8D301B #788D1B
monochromatic
#071126 #11285A #1B3F8D #2556C0 #4776DC

Accessibility & contrast

On white

9.80
#1B3F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#1B3F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3F8D
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3F8D#FFFFFF#000000##FFFFFF
##1B3F8D1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1b3f8d;
/* rgb */ color: rgb(27, 63, 141);
/* oklch */ color: oklch(39.1% 0.136 263.0);
Tailwind
colors: {
  custom: {
    50: '#6b73af',
    500: '#1b3f8d',
    950: '#000000',
  },
}
SCSS
$custom: #1b3f8d;
$custom-light: #6b73af;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3f8d",
  "rgb": {
    "r": 27,
    "g": 63,
    "b": 141
  },
  "hsl": {
    "h": 221.053,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39118,
    "c": 0.13639,
    "h": 263
  },
  "luminance": 0.05711
}

Semantic roles & 50–950 ramp

primary
#1B3F8D
secondary
#BD9846
accent
#B43DEB
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1B3F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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