#1F4C8C#1F4C8C

#1F4C8C is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.1% C 0.117 H 257.8°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#1F4C8C
RGBrgb(31, 76, 140)
HSLhsl(215, 64%, 34%)
HSVhsv(215, 78%, 55%)
CMYKcmyk(77.9%, 45.7%, 0%, 45.1%)
CIE-LABlab(32.60, 8.57, -39.99)
CIE-LCHlch(32.60, 40.90, 282.09°)
OKLaboklab(42.14% -0.0248 -0.1146)
OKLCHoklch(42.14% 0.117 257.8)
XYZxyz(7.8814, 7.3527, 25.8097)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4C8C #8C5F1F
analogous
#1F828C #1F4C8C #281F8C
triadic
#1F4C8C #8C1F4C #4C8C1F
tetradic
#1F4C8C #8C1F82 #8C5F1F #1F8C28
square
#1F4C8C #8C1F82 #8C5F1F #1F8C28
split-complementary
#1F4C8C #8C281F #828C1F
monochromatic
#091628 #14315A #1F4C8C #2A67BE #4E87D8

Accessibility & contrast

On white

8.50
#1F4C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#1F4C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4C8C
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4C8C#FFFFFF#000000##FFFFFF
##1F4C8C1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B528E
Deuteranopia (green-blind)
#15488B
Tritanopia (blue-blind)
#005B65
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f4c8c;
/* rgb */ color: rgb(31, 76, 140);
/* oklch */ color: oklch(42.1% 0.117 257.8);
Tailwind
colors: {
  custom: {
    50: '#6b7dae',
    500: '#1f4c8c',
    950: '#000000',
  },
}
SCSS
$custom: #1f4c8c;
$custom-light: #6b7dae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4c8c",
  "rgb": {
    "r": 31,
    "g": 76,
    "b": 140
  },
  "hsl": {
    "h": 215.229,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.42143,
    "c": 0.11723,
    "h": 257.8
  },
  "luminance": 0.07354
}

Semantic roles & 50–950 ramp

primary
#1F4C8C
secondary
#BB8D4C
accent
#A241E7
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1F4C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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