#1B3D8F#1B3D8F

#1B3D8F is a dark, vivid blue. Relative luminance 0.056; OKLCH L 38.9% C 0.142 H 263.9°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#1B3D8F
RGBrgb(27, 61, 143)
HSLhsl(222, 68%, 33%)
HSVhsv(222, 81%, 56%)
CMYKcmyk(81.1%, 57.3%, 0%, 43.9%)
CIE-LABlab(28.25, 19.59, -48.85)
CIE-LCHlch(28.25, 52.63, 291.86°)
OKLaboklab(38.86% -0.015 -0.141)
OKLCHoklch(38.86% 0.142 263.9)
XYZxyz(7.0769, 5.5528, 26.6801)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3D8F #8F6D1B
analogous
#1B778F #1B3D8F #331B8F
triadic
#1B3D8F #8F1B3D #3D8F1B
tetradic
#1B3D8F #8F1B77 #8F6D1B #1B8F33
square
#1B3D8F #8F1B77 #8F6D1B #1B8F33
split-complementary
#1B3D8F #8F331B #778F1B
monochromatic
#081128 #11275C #1B3D8F #2553C2 #4873DC

Accessibility & contrast

On white

9.95
#1B3D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B3D8F
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3D8F#FFFFFF#000000##FFFFFF
##1B3D8F1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#005160
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1b3d8f;
/* rgb */ color: rgb(27, 61, 143);
/* oklch */ color: oklch(38.9% 0.142 263.9);
Tailwind
colors: {
  custom: {
    50: '#6c72b0',
    500: '#1b3d8f',
    950: '#000000',
  },
}
SCSS
$custom: #1b3d8f;
$custom-light: #6c72b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3d8f",
  "rgb": {
    "r": 27,
    "g": 61,
    "b": 143
  },
  "hsl": {
    "h": 222.414,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38855,
    "c": 0.14181,
    "h": 263.9
  },
  "luminance": 0.05554
}

Semantic roles & 50–950 ramp

primary
#1B3D8F
secondary
#BE9B48
accent
#B83DEB
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1B3D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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