#1F4B8D#1F4B8D

#1F4B8D is a dark, moderate blue. Relative luminance 0.072; OKLCH L 42.0% C 0.120 H 258.6°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#1F4B8D
RGBrgb(31, 75, 141)
HSLhsl(216, 64%, 34%)
HSVhsv(216, 78%, 55%)
CMYKcmyk(78%, 46.8%, 0%, 44.7%)
CIE-LABlab(32.36, 9.64, -40.98)
CIE-LCHlch(32.36, 42.10, 283.24°)
OKLaboklab(41.98% -0.0237 -0.1175)
OKLCHoklch(41.98% 0.12 258.6)
XYZxyz(7.8871, 7.2456, 26.1770)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4B8D #8D611F
analogous
#1F828D #1F4B8D #2A1F8D
triadic
#1F4B8D #8D1F4B #4B8D1F
tetradic
#1F4B8D #8D1F82 #8D611F #1F8D2A
square
#1F4B8D #8D1F82 #8D611F #1F8D2A
split-complementary
#1F4B8D #8D2A1F #828D1F
monochromatic
#091629 #14305B #1F4B8D #2A66BF #4E85D8

Accessibility & contrast

On white

8.57
#1F4B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#1F4B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4B8D
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4B8D#FFFFFF#000000##FFFFFF
##1F4B8D1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28518F
Deuteranopia (green-blind)
#0F478C
Tritanopia (blue-blind)
#005B65
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f4b8d;
/* rgb */ color: rgb(31, 75, 141);
/* oklch */ color: oklch(42.0% 0.120 258.6);
Tailwind
colors: {
  custom: {
    50: '#6c7caf',
    500: '#1f4b8d',
    950: '#000000',
  },
}
SCSS
$custom: #1f4b8d;
$custom-light: #6c7caf;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4b8d",
  "rgb": {
    "r": 31,
    "g": 75,
    "b": 141
  },
  "hsl": {
    "h": 216,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.41981,
    "c": 0.11989,
    "h": 258.6
  },
  "luminance": 0.07247
}

Semantic roles & 50–950 ramp

primary
#1F4B8D
secondary
#BB8F4D
accent
#A541E7
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1F4B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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