#1B3F8E#1B3F8E

#1B3F8E is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.2% C 0.138 H 263.1°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#1B3F8E
RGBrgb(27, 63, 142)
HSLhsl(221, 68%, 33%)
HSVhsv(221, 81%, 56%)
CMYKcmyk(81%, 55.6%, 0%, 44.3%)
CIE-LABlab(28.75, 17.80, -47.44)
CIE-LCHlch(28.75, 50.67, 290.57°)
OKLaboklab(39.2% -0.0165 -0.1368)
OKLCHoklch(39.2% 0.138 263.1)
XYZxyz(7.1102, 5.7402, 26.3192)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3F8E #8E6A1B
analogous
#1B788E #1B3F8E #301B8E
triadic
#1B3F8E #8E1B3F #3F8E1B
tetradic
#1B3F8E #8E1B78 #8E6A1B #1B8E30
square
#1B3F8E #8E1B78 #8E6A1B #1B8E30
split-complementary
#1B3F8E #8E301B #788E1B
monochromatic
#071127 #11285B #1B3F8E #2556C1 #4776DC

Accessibility & contrast

On white

9.78
#1B3F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B3F8E
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3F8E#FFFFFF#000000##FFFFFF
##1B3F8E1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1b3f8e;
/* rgb */ color: rgb(27, 63, 142);
/* oklch */ color: oklch(39.2% 0.138 263.1);
Tailwind
colors: {
  custom: {
    50: '#6b73b0',
    500: '#1b3f8e',
    950: '#000000',
  },
}
SCSS
$custom: #1b3f8e;
$custom-light: #6b73b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3f8e",
  "rgb": {
    "r": 27,
    "g": 63,
    "b": 142
  },
  "hsl": {
    "h": 221.217,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39202,
    "c": 0.13781,
    "h": 263.1
  },
  "luminance": 0.05741
}

Semantic roles & 50–950 ramp

primary
#1B3F8E
secondary
#BE9947
accent
#B43DEB
background
#F6F6FA
surface
#ECECF5
border
#C7C7CF
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1B3F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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