#1F4C8D#1F4C8D

#1F4C8D is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.2% C 0.119 H 258.0°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#1F4C8D
RGBrgb(31, 76, 141)
HSLhsl(215, 64%, 34%)
HSVhsv(215, 78%, 55%)
CMYKcmyk(78%, 46.1%, 0%, 44.7%)
CIE-LABlab(32.66, 8.97, -40.50)
CIE-LCHlch(32.66, 41.48, 282.48°)
OKLaboklab(42.21% -0.0246 -0.1161)
OKLCHoklch(42.21% 0.119 258)
XYZxyz(7.9555, 7.3824, 26.1998)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4C8D #8D601F
analogous
#1F838D #1F4C8D #291F8D
triadic
#1F4C8D #8D1F4C #4C8D1F
tetradic
#1F4C8D #8D1F83 #8D601F #1F8D29
square
#1F4C8D #8D1F83 #8D601F #1F8D29
split-complementary
#1F4C8D #8D291F #838D1F
monochromatic
#091629 #14315B #1F4C8D #2A67BF #4E87D8

Accessibility & contrast

On white

8.48
#1F4C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#1F4C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4C8D
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4C8D#FFFFFF#000000##FFFFFF
##1F4C8D1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A528F
Deuteranopia (green-blind)
#13488C
Tritanopia (blue-blind)
#005B65
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f4c8d;
/* rgb */ color: rgb(31, 76, 141);
/* oklch */ color: oklch(42.2% 0.119 258.0);
Tailwind
colors: {
  custom: {
    50: '#6c7daf',
    500: '#1f4c8d',
    950: '#000000',
  },
}
SCSS
$custom: #1f4c8d;
$custom-light: #6c7daf;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4c8d",
  "rgb": {
    "r": 31,
    "g": 76,
    "b": 141
  },
  "hsl": {
    "h": 215.455,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.42214,
    "c": 0.11866,
    "h": 258
  },
  "luminance": 0.07383
}

Semantic roles & 50–950 ramp

primary
#1F4C8D
secondary
#BB8E4D
accent
#A341E7
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1F4C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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