#1F4C8F#1F4C8F

#1F4C8F is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.4% C 0.121 H 258.5°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#1F4C8F
RGBrgb(31, 76, 143)
HSLhsl(216, 64%, 34%)
HSVhsv(216, 78%, 56%)
CMYKcmyk(78.3%, 46.9%, 0%, 43.9%)
CIE-LABlab(32.79, 9.77, -41.51)
CIE-LCHlch(32.79, 42.64, 283.24°)
OKLaboklab(42.36% -0.0242 -0.119)
OKLCHoklch(42.36% 0.121 258.5)
XYZxyz(8.1056, 7.4424, 26.9906)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4C8F #8F621F
analogous
#1F848F #1F4C8F #2A1F8F
triadic
#1F4C8F #8F1F4C #4C8F1F
tetradic
#1F4C8F #8F1F84 #8F621F #1F8F2A
square
#1F4C8F #8F1F84 #8F621F #1F8F2A
split-complementary
#1F4C8F #8F2A1F #848F1F
monochromatic
#09172A #14315D #1F4C8F #2A67C1 #4F87D9

Accessibility & contrast

On white

8.44
#1F4C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#1F4C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4C8F
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4C8F#FFFFFF#000000##FFFFFF
##1F4C8F1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295392
Deuteranopia (green-blind)
#0F488E
Tritanopia (blue-blind)
#005C66
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f4c8f;
/* rgb */ color: rgb(31, 76, 143);
/* oklch */ color: oklch(42.4% 0.121 258.5);
Tailwind
colors: {
  custom: {
    50: '#6c7db0',
    500: '#1f4c8f',
    950: '#000000',
  },
}
SCSS
$custom: #1f4c8f;
$custom-light: #6c7db0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4c8f",
  "rgb": {
    "r": 31,
    "g": 76,
    "b": 143
  },
  "hsl": {
    "h": 215.893,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.42358,
    "c": 0.12149,
    "h": 258.5
  },
  "luminance": 0.07443
}

Semantic roles & 50–950 ramp

primary
#1F4C8F
secondary
#BC904E
accent
#A440E7
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #1F4C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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