#1B3D7F#1B3D7F

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

Color values

HEX#1B3D7F
RGBrgb(27, 61, 127)
HSLhsl(220, 65%, 30%)
HSVhsv(220, 79%, 50%)
CMYKcmyk(78.7%, 52%, 0%, 50.2%)
CIE-LABlab(27.02, 13.09, -40.91)
CIE-LCHlch(27.02, 42.95, 287.74°)
OKLaboklab(37.53% -0.0167 -0.1176)
OKLCHoklch(37.53% 0.119 261.9)
XYZxyz(5.9501, 5.1021, 20.7458)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3D7F #7F5D1B
analogous
#1B6F7F #1B3D7F #2B1B7F
triadic
#1B3D7F #7F1B3D #3D7F1B
tetradic
#1B3D7F #7F1B6F #7F5D1B #1B7F2B
square
#1B3D7F #7F1B6F #7F5D1B #1B7F2B
split-complementary
#1B3D7F #7F2B1B #6F7F1B
monochromatic
#060D1A #10254D #1B3D7F #2655B1 #3E72D6

Accessibility & contrast

On white

10.39
#1B3D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B3D7F
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3D7F#FFFFFF#000000##FFFFFF
##1B3D7F1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154581
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#004D58
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1b3d7f;
/* rgb */ color: rgb(27, 61, 127);
/* oklch */ color: oklch(37.5% 0.119 261.9);
Tailwind
colors: {
  custom: {
    50: '#6771a5',
    500: '#1b3d7f',
    950: '#000000',
  },
}
SCSS
$custom: #1b3d7f;
$custom-light: #6771a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3d7f",
  "rgb": {
    "r": 27,
    "g": 61,
    "b": 127
  },
  "hsl": {
    "h": 219.6,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.37531,
    "c": 0.11882,
    "h": 261.9
  },
  "luminance": 0.05103
}

Semantic roles & 50–950 ramp

primary
#1B3D7F
secondary
#B38D43
accent
#AF40E8
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1B3D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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