#1F4587#1F4587

#1F4587 is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.1% C 0.119 H 260.6°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#1F4587
RGBrgb(31, 69, 135)
HSLhsl(218, 63%, 33%)
HSVhsv(218, 77%, 53%)
CMYKcmyk(77%, 48.9%, 0%, 47.1%)
CIE-LABlab(30.15, 11.32, -40.84)
CIE-LCHlch(30.15, 42.38, 285.49°)
OKLaboklab(40.15% -0.0194 -0.1172)
OKLCHoklch(40.15% 0.119 260.6)
XYZxyz(7.0648, 6.2960, 23.7599)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4587 #87611F
analogous
#1F7987 #1F4587 #2D1F87
triadic
#1F4587 #871F45 #45871F
tetradic
#1F4587 #871F79 #87611F #1F872D
square
#1F4587 #871F79 #87611F #1F872D
split-complementary
#1F4587 #872D1F #79871F
monochromatic
#081223 #142C55 #1F4587 #2A5EB9 #4B7ED6

Accessibility & contrast

On white

9.29
#1F4587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#1F4587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4587
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4587#FFFFFF#000000##FFFFFF
##1F45871.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214C89
Deuteranopia (green-blind)
#034386
Tritanopia (blue-blind)
#00555F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f4587;
/* rgb */ color: rgb(31, 69, 135);
/* oklch */ color: oklch(40.1% 0.119 260.6);
Tailwind
colors: {
  custom: {
    50: '#6a78aa',
    500: '#1f4587',
    950: '#000000',
  },
}
SCSS
$custom: #1f4587;
$custom-light: #6a78aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4587",
  "rgb": {
    "r": 31,
    "g": 69,
    "b": 135
  },
  "hsl": {
    "h": 218.077,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.40148,
    "c": 0.11884,
    "h": 260.6
  },
  "luminance": 0.06297
}

Semantic roles & 50–950 ramp

primary
#1F4587
secondary
#B8904A
accent
#AA42E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1F4587

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

Preview Lab → · Contrast checker → · Palette generator →

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