#1F428C#1F428C

#1F428C is a dark, vivid blue. Relative luminance 0.061; OKLCH L 39.9% C 0.130 H 262.9°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#1F428C
RGBrgb(31, 66, 140)
HSLhsl(221, 64%, 34%)
HSVhsv(221, 78%, 55%)
CMYKcmyk(77.9%, 52.9%, 0%, 45.1%)
CIE-LABlab(29.61, 15.39, -44.79)
CIE-LCHlch(29.61, 47.36, 288.96°)
OKLaboklab(39.85% -0.0161 -0.1289)
OKLCHoklch(39.85% 0.13 262.9)
XYZxyz(7.2452, 6.0804, 25.5976)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F428C #8C691F
analogous
#1F788C #1F428C #321F8C
triadic
#1F428C #8C1F42 #428C1F
tetradic
#1F428C #8C1F78 #8C691F #1F8C32
square
#1F428C #8C1F78 #8C691F #1F8C32
split-complementary
#1F428C #8C321F #788C1F
monochromatic
#091328 #142A5A #1F428C #2A5ABE #4E7AD8

Accessibility & contrast

On white

9.48
#1F428C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#1F428C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F428C
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F428C#FFFFFF#000000##FFFFFF
##1F428C1.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114B8F
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#005460
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f428c;
/* rgb */ color: rgb(31, 66, 140);
/* oklch */ color: oklch(39.9% 0.130 262.9);
Tailwind
colors: {
  custom: {
    50: '#6c75ae',
    500: '#1f428c',
    950: '#000000',
  },
}
SCSS
$custom: #1f428c;
$custom-light: #6c75ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f428c",
  "rgb": {
    "r": 31,
    "g": 66,
    "b": 140
  },
  "hsl": {
    "h": 220.734,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39854,
    "c": 0.12991,
    "h": 262.9
  },
  "luminance": 0.06081
}

Semantic roles & 50–950 ramp

primary
#1F428C
secondary
#BB974C
accent
#B241E7
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1F428C

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

Preview Lab → · Contrast checker → · Palette generator →

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