#1F4D8F#1F4D8F

#1F4D8F is a dark, vivid blue. Relative luminance 0.076; OKLCH L 42.6% C 0.120 H 258.0°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#1F4D8F
RGBrgb(31, 77, 143)
HSLhsl(215, 64%, 34%)
HSVhsv(215, 78%, 56%)
CMYKcmyk(78.3%, 46.2%, 0%, 43.9%)
CIE-LABlab(33.10, 9.09, -41.03)
CIE-LCHlch(33.10, 42.02, 282.50°)
OKLaboklab(42.59% -0.0251 -0.1176)
OKLCHoklch(42.59% 0.12 258)
XYZxyz(8.1751, 7.5813, 27.0138)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4D8F #8F611F
analogous
#1F858F #1F4D8F #291F8F
triadic
#1F4D8F #8F1F4D #4D8F1F
tetradic
#1F4D8F #8F1F85 #8F611F #1F8F29
square
#1F4D8F #8F1F85 #8F611F #1F8F29
split-complementary
#1F4D8F #8F291F #858F1F
monochromatic
#09172A #14325D #1F4D8F #2A68C1 #4F88D9

Accessibility & contrast

On white

8.35
#1F4D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#1F4D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4D8F
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4D8F#FFFFFF#000000##FFFFFF
##1F4D8F1.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5392
Deuteranopia (green-blind)
#13498E
Tritanopia (blue-blind)
#005D67
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f4d8f;
/* rgb */ color: rgb(31, 77, 143);
/* oklch */ color: oklch(42.6% 0.120 258.0);
Tailwind
colors: {
  custom: {
    50: '#6c7eb0',
    500: '#1f4d8f',
    950: '#000000',
  },
}
SCSS
$custom: #1f4d8f;
$custom-light: #6c7eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4d8f",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 143
  },
  "hsl": {
    "h": 215.357,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.42591,
    "c": 0.12026,
    "h": 258
  },
  "luminance": 0.07582
}

Semantic roles & 50–950 ramp

primary
#1F4D8F
secondary
#BC8F4E
accent
#A340E7
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #1F4D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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