#1B3D8E#1B3D8E

#1B3D8E is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.8% C 0.140 H 263.8°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#1B3D8E
RGBrgb(27, 61, 142)
HSLhsl(222, 68%, 33%)
HSVhsv(222, 81%, 56%)
CMYKcmyk(81%, 57%, 0%, 44.3%)
CIE-LABlab(28.17, 19.19, -48.36)
CIE-LCHlch(28.17, 52.03, 291.64°)
OKLaboklab(38.77% -0.0151 -0.1396)
OKLCHoklch(38.77% 0.14 263.8)
XYZxyz(7.0015, 5.5227, 26.2829)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3D8E #8E6C1B
analogous
#1B768E #1B3D8E #331B8E
triadic
#1B3D8E #8E1B3D #3D8E1B
tetradic
#1B3D8E #8E1B76 #8E6C1B #1B8E33
square
#1B3D8E #8E1B76 #8E6C1B #1B8E33
split-complementary
#1B3D8E #8E331B #768E1B
monochromatic
#071127 #11275B #1B3D8E #2553C1 #4773DC

Accessibility & contrast

On white

9.98
#1B3D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#1B3D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3D8E
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3D8E#FFFFFF#000000##FFFFFF
##1B3D8E1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#00515F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1b3d8e;
/* rgb */ color: rgb(27, 61, 142);
/* oklch */ color: oklch(38.8% 0.140 263.8);
Tailwind
colors: {
  custom: {
    50: '#6b71b0',
    500: '#1b3d8e',
    950: '#000000',
  },
}
SCSS
$custom: #1b3d8e;
$custom-light: #6b71b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3d8e",
  "rgb": {
    "r": 27,
    "g": 61,
    "b": 142
  },
  "hsl": {
    "h": 222.261,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38769,
    "c": 0.14039,
    "h": 263.8
  },
  "luminance": 0.05523
}

Semantic roles & 50–950 ramp

primary
#1B3D8E
secondary
#BE9B47
accent
#B73DEB
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #1B3D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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