#1F4688#1F4688

#1F4688 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.5% C 0.119 H 260.3°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#1F4688
RGBrgb(31, 70, 136)
HSLhsl(218, 63%, 33%)
HSVhsv(218, 77%, 53%)
CMYKcmyk(77.2%, 48.5%, 0%, 46.7%)
CIE-LABlab(30.52, 11.03, -40.87)
CIE-LCHlch(30.52, 42.33, 285.11°)
OKLaboklab(40.45% -0.0201 -0.1173)
OKLCHoklch(40.45% 0.119 260.3)
XYZxyz(7.1976, 6.4484, 24.1531)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4688 #88611F
analogous
#1F7A88 #1F4688 #2C1F88
triadic
#1F4688 #881F46 #46881F
tetradic
#1F4688 #881F7A #88611F #1F882C
square
#1F4688 #881F7A #88611F #1F882C
split-complementary
#1F4688 #882C1F #7A881F
monochromatic
#081324 #142C56 #1F4688 #2A60BA #4B7FD6

Accessibility & contrast

On white

9.17
#1F4688 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#1F4688 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4688
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4688#FFFFFF#000000##FFFFFF
##1F46881.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224D8A
Deuteranopia (green-blind)
#054387
Tritanopia (blue-blind)
#005660
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f4688;
/* rgb */ color: rgb(31, 70, 136);
/* oklch */ color: oklch(40.5% 0.119 260.3);
Tailwind
colors: {
  custom: {
    50: '#6b78ab',
    500: '#1f4688',
    950: '#000000',
  },
}
SCSS
$custom: #1f4688;
$custom-light: #6b78ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4688",
  "rgb": {
    "r": 31,
    "g": 70,
    "b": 136
  },
  "hsl": {
    "h": 217.714,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.40453,
    "c": 0.11901,
    "h": 260.3
  },
  "luminance": 0.06449
}

Semantic roles & 50–950 ramp

primary
#1F4688
secondary
#B9904A
accent
#A942E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #1F4688

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

Preview Lab → · Contrast checker → · Palette generator →

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