#1B3F8A#1B3F8A

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

Color values

HEX#1B3F8A
RGBrgb(27, 63, 138)
HSLhsl(221, 67%, 32%)
HSVhsv(221, 80%, 54%)
CMYKcmyk(80.4%, 54.3%, 0%, 45.9%)
CIE-LABlab(28.44, 16.18, -45.47)
CIE-LCHlch(28.44, 48.26, 289.59°)
OKLaboklab(38.87% -0.0169 -0.131)
OKLCHoklch(38.87% 0.132 262.6)
XYZxyz(6.8153, 5.6222, 24.7658)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3F8A #8A661B
analogous
#1B768A #1B3F8A #2F1B8A
triadic
#1B3F8A #8A1B3F #3F8A1B
tetradic
#1B3F8A #8A1B76 #8A661B #1B8A2F
square
#1B3F8A #8A1B76 #8A661B #1B8A2F
split-complementary
#1B3F8A #8A2F1B #768A1B
monochromatic
#071024 #112857 #1B3F8A #2556BD #4575DB

Accessibility & contrast

On white

9.88
#1B3F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#1B3F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3F8A
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3F8A#FFFFFF#000000##FFFFFF
##1B3F8A1.009.882.129.88
#FFFFFF9.881.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06488D
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#00515E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1b3f8a;
/* rgb */ color: rgb(27, 63, 138);
/* oklch */ color: oklch(38.9% 0.132 262.6);
Tailwind
colors: {
  custom: {
    50: '#6a73ad',
    500: '#1b3f8a',
    950: '#000000',
  },
}
SCSS
$custom: #1b3f8a;
$custom-light: #6a73ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3f8a",
  "rgb": {
    "r": 27,
    "g": 63,
    "b": 138
  },
  "hsl": {
    "h": 220.541,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3887,
    "c": 0.13211,
    "h": 262.6
  },
  "luminance": 0.05623
}

Semantic roles & 50–950 ramp

primary
#1B3F8A
secondary
#BC9545
accent
#B23EEA
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1B3F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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