#1F4072#1F4072

#1F4072 is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.4% C 0.094 H 258.6°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#1F4072
RGBrgb(31, 64, 114)
HSLhsl(216, 57%, 28%)
HSVhsv(216, 73%, 45%)
CMYKcmyk(72.8%, 43.9%, 0%, 55.3%)
CIE-LABlab(27.22, 6.33, -32.39)
CIE-LCHlch(27.22, 33.00, 281.06°)
OKLaboklab(37.44% -0.0187 -0.0925)
OKLCHoklch(37.44% 0.094 258.6)
XYZxyz(5.4346, 5.1724, 16.6283)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4072 #72511F
analogous
#1F6972 #1F4072 #281F72
triadic
#1F4072 #721F40 #40721F
tetradic
#1F4072 #721F69 #72511F #1F7228
square
#1F4072 #721F69 #72511F #1F7228
split-complementary
#1F4072 #72281F #69721F
monochromatic
#070E18 #122542 #1F4072 #2C5BA2 #4077CB

Accessibility & contrast

On white

10.32
#1F4072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4072
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4072#FFFFFF#000000##FFFFFF
##1F40721.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284474
Deuteranopia (green-blind)
#1B3D71
Tritanopia (blue-blind)
#004C53
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f4072;
/* rgb */ color: rgb(31, 64, 114);
/* oklch */ color: oklch(37.4% 0.094 258.6);
Tailwind
colors: {
  custom: {
    50: '#66749b',
    500: '#1f4072',
    950: '#000000',
  },
}
SCSS
$custom: #1f4072;
$custom-light: #66749b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4072",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 114
  },
  "hsl": {
    "h": 216.145,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37442,
    "c": 0.09433,
    "h": 258.6
  },
  "luminance": 0.05173
}

Semantic roles & 50–950 ramp

primary
#1F4072
secondary
#A68047
accent
#A447E0
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#06080E
muted
#7A7B7E

Preview Lab

Preview with #1F4072

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

Preview Lab → · Contrast checker → · Palette generator →

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