#1B3D7E#1B3D7E

#1B3D7E is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.5% C 0.117 H 261.8°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#1B3D7E
RGBrgb(27, 61, 126)
HSLhsl(219, 65%, 30%)
HSVhsv(219, 79%, 49%)
CMYKcmyk(78.6%, 51.6%, 0%, 50.6%)
CIE-LABlab(26.95, 12.68, -40.40)
CIE-LCHlch(26.95, 42.34, 287.42°)
OKLaboklab(37.45% -0.0168 -0.1161)
OKLCHoklch(37.45% 0.117 261.8)
XYZxyz(5.8853, 5.0762, 20.4042)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3D7E #7E5C1B
analogous
#1B6E7E #1B3D7E #2B1B7E
triadic
#1B3D7E #7E1B3D #3D7E1B
tetradic
#1B3D7E #7E1B6E #7E5C1B #1B7E2B
square
#1B3D7E #7E1B6E #7E5C1B #1B7E2B
split-complementary
#1B3D7E #7E2B1B #6E7E1B
monochromatic
#050C19 #10254C #1B3D7E #2655B0 #3E72D6

Accessibility & contrast

On white

10.42
#1B3D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#1B3D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3D7E
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3D7E#FFFFFF#000000##FFFFFF
##1B3D7E1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164480
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#004D57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1b3d7e;
/* rgb */ color: rgb(27, 61, 126);
/* oklch */ color: oklch(37.5% 0.117 261.8);
Tailwind
colors: {
  custom: {
    50: '#6771a4',
    500: '#1b3d7e',
    950: '#000000',
  },
}
SCSS
$custom: #1b3d7e;
$custom-light: #6771a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3d7e",
  "rgb": {
    "r": 27,
    "g": 61,
    "b": 126
  },
  "hsl": {
    "h": 219.394,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.37452,
    "c": 0.11736,
    "h": 261.8
  },
  "luminance": 0.05077
}

Semantic roles & 50–950 ramp

primary
#1B3D7E
secondary
#B28C43
accent
#AE40E8
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1B3D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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