#1B3F8F#1B3F8F

#1B3F8F is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.3% C 0.139 H 263.2°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#1B3F8F
RGBrgb(27, 63, 143)
HSLhsl(221, 68%, 33%)
HSVhsv(221, 81%, 56%)
CMYKcmyk(81.1%, 55.9%, 0%, 43.9%)
CIE-LABlab(28.83, 18.21, -47.92)
CIE-LCHlch(28.83, 51.27, 290.80°)
OKLaboklab(39.29% -0.0165 -0.1383)
OKLCHoklch(39.29% 0.139 263.2)
XYZxyz(7.1857, 5.7704, 26.7164)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3F8F #8F6B1B
analogous
#1B798F #1B3F8F #311B8F
triadic
#1B3F8F #8F1B3F #3F8F1B
tetradic
#1B3F8F #8F1B79 #8F6B1B #1B8F31
square
#1B3F8F #8F1B79 #8F6B1B #1B8F31
split-complementary
#1B3F8F #8F311B #798F1B
monochromatic
#081228 #11285C #1B3F8F #2556C2 #4876DC

Accessibility & contrast

On white

9.75
#1B3F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B3F8F
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3F8F#FFFFFF#000000##FFFFFF
##1B3F8F1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1b3f8f;
/* rgb */ color: rgb(27, 63, 143);
/* oklch */ color: oklch(39.3% 0.139 263.2);
Tailwind
colors: {
  custom: {
    50: '#6b73b0',
    500: '#1b3f8f',
    950: '#000000',
  },
}
SCSS
$custom: #1b3f8f;
$custom-light: #6b73b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3f8f",
  "rgb": {
    "r": 27,
    "g": 63,
    "b": 143
  },
  "hsl": {
    "h": 221.379,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39286,
    "c": 0.13923,
    "h": 263.2
  },
  "luminance": 0.05771
}

Semantic roles & 50–950 ramp

primary
#1B3F8F
secondary
#BE9948
accent
#B53DEB
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1B3F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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