#1F3E77#1F3E77

#1F3E77 is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.3% C 0.104 H 261.4°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#1F3E77
RGBrgb(31, 62, 119)
HSLhsl(219, 59%, 29%)
HSVhsv(219, 74%, 47%)
CMYKcmyk(73.9%, 47.9%, 0%, 53.3%)
CIE-LABlab(26.93, 9.72, -36.02)
CIE-LCHlch(26.93, 37.31, 285.10°)
OKLaboklab(37.32% -0.0156 -0.1032)
OKLCHoklch(37.32% 0.104 261.4)
XYZxyz(5.6163, 5.0679, 18.1314)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3E77 #77581F
analogous
#1F6A77 #1F3E77 #2C1F77
triadic
#1F3E77 #771F3E #3E771F
tetradic
#1F3E77 #771F6A #77581F #1F772C
square
#1F3E77 #771F6A #77581F #1F772C
split-complementary
#1F3E77 #772C1F #6A771F
monochromatic
#060D18 #122546 #1F3E77 #2C57A8 #4374CE

Accessibility & contrast

On white

10.43
#1F3E77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#1F3E77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3E77
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3E77#FFFFFF#000000##FFFFFF
##1F3E771.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214479
Deuteranopia (green-blind)
#0E3C76
Tritanopia (blue-blind)
#004B54
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f3e77;
/* rgb */ color: rgb(31, 62, 119);
/* oklch */ color: oklch(37.3% 0.104 261.4);
Tailwind
colors: {
  custom: {
    50: '#67729f',
    500: '#1f3e77',
    950: '#000000',
  },
}
SCSS
$custom: #1f3e77;
$custom-light: #67729f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3e77",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 119
  },
  "hsl": {
    "h": 218.864,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37322,
    "c": 0.10436,
    "h": 261.4
  },
  "luminance": 0.05068
}

Semantic roles & 50–950 ramp

primary
#1F3E77
secondary
#AB8847
accent
#AB46E2
background
#F6F6F9
surface
#EBECF2
border
#C6C7CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #1F3E77

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

Preview Lab → · Contrast checker → · Palette generator →

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