#1B3F7D#1B3F7D

#1B3F7D is a dark, moderate blue. Relative luminance 0.053; OKLCH L 37.8% C 0.113 H 260.5°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#1B3F7D
RGBrgb(27, 63, 125)
HSLhsl(218, 64%, 30%)
HSVhsv(218, 78%, 49%)
CMYKcmyk(78.4%, 49.6%, 0%, 51%)
CIE-LABlab(27.48, 10.87, -38.91)
CIE-LCHlch(27.48, 40.40, 285.61°)
OKLaboklab(37.84% -0.0187 -0.1117)
OKLCHoklch(37.84% 0.113 260.5)
XYZxyz(5.9298, 5.2680, 20.1024)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3F7D #7D591B
analogous
#1B707D #1B3F7D #281B7D
triadic
#1B3F7D #7D1B3F #3F7D1B
tetradic
#1B3F7D #7D1B70 #7D591B #1B7D28
square
#1B3F7D #7D1B70 #7D591B #1B7D28
split-complementary
#1B3F7D #7D281B #707D1B
monochromatic
#050D19 #10264B #1B3F7D #2658AF #3D75D5

Accessibility & contrast

On white

10.22
#1B3F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#1B3F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3F7D
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3F7D#FFFFFF#000000##FFFFFF
##1B3F7D1.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D467F
Deuteranopia (green-blind)
#003D7C
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1b3f7d;
/* rgb */ color: rgb(27, 63, 125);
/* oklch */ color: oklch(37.8% 0.113 260.5);
Tailwind
colors: {
  custom: {
    50: '#6773a3',
    500: '#1b3f7d',
    950: '#000000',
  },
}
SCSS
$custom: #1b3f7d;
$custom-light: #6773a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3f7d",
  "rgb": {
    "r": 27,
    "g": 63,
    "b": 125
  },
  "hsl": {
    "h": 217.959,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37838,
    "c": 0.11329,
    "h": 260.5
  },
  "luminance": 0.05269
}

Semantic roles & 50–950 ramp

primary
#1B3F7D
secondary
#B18843
accent
#AA40E7
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1B3F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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