#1B3F7F#1B3F7F

#1B3F7F is a dark, moderate blue. Relative luminance 0.053; OKLCH L 38.0% C 0.116 H 260.9°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#1B3F7F
RGBrgb(27, 63, 127)
HSLhsl(218, 65%, 30%)
HSVhsv(218, 79%, 50%)
CMYKcmyk(78.7%, 50.4%, 0%, 50.2%)
CIE-LABlab(27.63, 11.69, -39.93)
CIE-LCHlch(27.63, 41.61, 286.32°)
OKLaboklab(37.99% -0.0184 -0.1147)
OKLCHoklch(37.99% 0.116 260.9)
XYZxyz(6.0589, 5.3196, 20.7820)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3F7F #7F5B1B
analogous
#1B717F #1B3F7F #291B7F
triadic
#1B3F7F #7F1B3F #3F7F1B
tetradic
#1B3F7F #7F1B71 #7F5B1B #1B7F29
square
#1B3F7F #7F1B71 #7F5B1B #1B7F29
split-complementary
#1B3F7F #7F291B #717F1B
monochromatic
#060D1A #10264D #1B3F7F #2658B1 #3E75D6

Accessibility & contrast

On white

10.17
#1B3F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#1B3F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3F7F
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3F7F#FFFFFF#000000##FFFFFF
##1B3F7F1.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4681
Deuteranopia (green-blind)
#003D7E
Tritanopia (blue-blind)
#004E59
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1b3f7f;
/* rgb */ color: rgb(27, 63, 127);
/* oklch */ color: oklch(38.0% 0.116 260.9);
Tailwind
colors: {
  custom: {
    50: '#6773a5',
    500: '#1b3f7f',
    950: '#000000',
  },
}
SCSS
$custom: #1b3f7f;
$custom-light: #6773a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3f7f",
  "rgb": {
    "r": 27,
    "g": 63,
    "b": 127
  },
  "hsl": {
    "h": 218.4,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.37992,
    "c": 0.11621,
    "h": 260.9
  },
  "luminance": 0.0532
}

Semantic roles & 50–950 ramp

primary
#1B3F7F
secondary
#B38B43
accent
#AB40E8
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1B3F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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