#1F4C8E#1F4C8E

#1F4C8E is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.3% C 0.120 H 258.3°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#1F4C8E
RGBrgb(31, 76, 142)
HSLhsl(216, 64%, 34%)
HSVhsv(216, 78%, 56%)
CMYKcmyk(78.2%, 46.5%, 0%, 44.3%)
CIE-LABlab(32.73, 9.36, -41.00)
CIE-LCHlch(32.73, 42.06, 282.87°)
OKLaboklab(42.29% -0.0244 -0.1176)
OKLCHoklch(42.29% 0.12 258.3)
XYZxyz(8.0302, 7.4123, 26.5934)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4C8E #8E611F
analogous
#1F848E #1F4C8E #2A1F8E
triadic
#1F4C8E #8E1F4C #4C8E1F
tetradic
#1F4C8E #8E1F84 #8E611F #1F8E2A
square
#1F4C8E #8E1F84 #8E611F #1F8E2A
split-complementary
#1F4C8E #8E2A1F #848E1F
monochromatic
#09162A #14315C #1F4C8E #2A67C0 #4F87D9

Accessibility & contrast

On white

8.46
#1F4C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4C8E
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4C8E#FFFFFF#000000##FFFFFF
##1F4C8E1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5291
Deuteranopia (green-blind)
#11488D
Tritanopia (blue-blind)
#005C66
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f4c8e;
/* rgb */ color: rgb(31, 76, 142);
/* oklch */ color: oklch(42.3% 0.120 258.3);
Tailwind
colors: {
  custom: {
    50: '#6c7daf',
    500: '#1f4c8e',
    950: '#000000',
  },
}
SCSS
$custom: #1f4c8e;
$custom-light: #6c7daf;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4c8e",
  "rgb": {
    "r": 31,
    "g": 76,
    "b": 142
  },
  "hsl": {
    "h": 215.676,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.42286,
    "c": 0.12008,
    "h": 258.3
  },
  "luminance": 0.07413
}

Semantic roles & 50–950 ramp

primary
#1F4C8E
secondary
#BB8F4D
accent
#A441E7
background
#F6F7FA
surface
#ECEEF5
border
#C7C9CF
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1F4C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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