#1F4071#1F4071

#1F4071 is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.4% C 0.093 H 258.2°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#1F4071
RGBrgb(31, 64, 113)
HSLhsl(216, 57%, 28%)
HSVhsv(216, 73%, 44%)
CMYKcmyk(72.6%, 43.4%, 0%, 55.7%)
CIE-LABlab(27.16, 5.93, -31.85)
CIE-LCHlch(27.16, 32.40, 280.55°)
OKLaboklab(37.37% -0.0189 -0.0909)
OKLCHoklch(37.37% 0.093 258.2)
XYZxyz(5.3780, 5.1498, 16.3302)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4071 #71501F
analogous
#1F6971 #1F4071 #271F71
triadic
#1F4071 #711F40 #40711F
tetradic
#1F4071 #711F69 #71501F #1F7127
square
#1F4071 #711F69 #71501F #1F7127
split-complementary
#1F4071 #71271F #69711F
monochromatic
#070E18 #122541 #1F4071 #2C5BA1 #4078CB

Accessibility & contrast

On white

10.34
#1F4071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#1F4071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4071
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4071#FFFFFF#000000##FFFFFF
##1F40711.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294473
Deuteranopia (green-blind)
#1C3D70
Tritanopia (blue-blind)
#004B53
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f4071;
/* rgb */ color: rgb(31, 64, 113);
/* oklch */ color: oklch(37.4% 0.093 258.2);
Tailwind
colors: {
  custom: {
    50: '#65749a',
    500: '#1f4071',
    950: '#000000',
  },
}
SCSS
$custom: #1f4071;
$custom-light: #65749a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4071",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 113
  },
  "hsl": {
    "h": 215.854,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37373,
    "c": 0.09284,
    "h": 258.2
  },
  "luminance": 0.0515
}

Semantic roles & 50–950 ramp

primary
#1F4071
secondary
#A57F47
accent
#A348E0
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#06080E
muted
#7A7B7E

Preview Lab

Preview with #1F4071

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

Preview Lab → · Contrast checker → · Palette generator →

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