#1F4077#1F4077

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

Color values

HEX#1F4077
RGBrgb(31, 64, 119)
HSLhsl(218, 59%, 29%)
HSVhsv(218, 74%, 47%)
CMYKcmyk(73.9%, 46.2%, 0%, 53.3%)
CIE-LABlab(27.54, 8.33, -35.03)
CIE-LCHlch(27.54, 36.01, 283.38°)
OKLaboklab(37.8% -0.0176 -0.1002)
OKLCHoklch(37.8% 0.102 260)
XYZxyz(5.7270, 5.2894, 18.1683)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4077 #77561F
analogous
#1F6C77 #1F4077 #2A1F77
triadic
#1F4077 #771F40 #40771F
tetradic
#1F4077 #771F6C #77561F #1F772A
square
#1F4077 #771F6C #77561F #1F772A
split-complementary
#1F4077 #772A1F #6C771F
monochromatic
#060D18 #122646 #1F4077 #2C5AA8 #4377CE

Accessibility & contrast

On white

10.20
#1F4077 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4077
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4077#FFFFFF#000000##FFFFFF
##1F40771.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254579
Deuteranopia (green-blind)
#143D76
Tritanopia (blue-blind)
#004D55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f4077;
/* rgb */ color: rgb(31, 64, 119);
/* oklch */ color: oklch(37.8% 0.102 260.0);
Tailwind
colors: {
  custom: {
    50: '#67749e',
    500: '#1f4077',
    950: '#000000',
  },
}
SCSS
$custom: #1f4077;
$custom-light: #67749e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4077",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 119
  },
  "hsl": {
    "h": 217.5,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37797,
    "c": 0.10177,
    "h": 260
  },
  "luminance": 0.0529
}

Semantic roles & 50–950 ramp

primary
#1F4077
secondary
#AB8547
accent
#A746E2
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #1F4077

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

Preview Lab → · Contrast checker → · Palette generator →

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