#1F4386#1F4386

#1F4386 is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.6% C 0.120 H 261.5°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#1F4386
RGBrgb(31, 67, 134)
HSLhsl(219, 62%, 32%)
HSVhsv(219, 77%, 53%)
CMYKcmyk(76.9%, 50%, 0%, 47.5%)
CIE-LABlab(29.48, 12.29, -41.30)
CIE-LCHlch(29.48, 43.09, 286.57°)
OKLaboklab(39.61% -0.0178 -0.1186)
OKLCHoklch(39.61% 0.12 261.5)
XYZxyz(6.8738, 6.0261, 23.3505)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4386 #86621F
analogous
#1F7786 #1F4386 #2F1F86
triadic
#1F4386 #861F43 #43861F
tetradic
#1F4386 #861F77 #86621F #1F862F
square
#1F4386 #861F77 #86621F #1F862F
split-complementary
#1F4386 #862F1F #77861F
monochromatic
#081123 #142A54 #1F4386 #2A5CB8 #4A7BD5

Accessibility & contrast

On white

9.52
#1F4386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#1F4386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4386
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4386#FFFFFF#000000##FFFFFF
##1F43861.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4A88
Deuteranopia (green-blind)
#004185
Tritanopia (blue-blind)
#00535E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f4386;
/* rgb */ color: rgb(31, 67, 134);
/* oklch */ color: oklch(39.6% 0.120 261.5);
Tailwind
colors: {
  custom: {
    50: '#6a76aa',
    500: '#1f4386',
    950: '#000000',
  },
}
SCSS
$custom: #1f4386;
$custom-light: #6a76aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4386",
  "rgb": {
    "r": 31,
    "g": 67,
    "b": 134
  },
  "hsl": {
    "h": 219.029,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39612,
    "c": 0.11995,
    "h": 261.5
  },
  "luminance": 0.06027
}

Semantic roles & 50–950 ramp

primary
#1F4386
secondary
#B89149
accent
#AC42E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1F4386

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

Preview Lab → · Contrast checker → · Palette generator →

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