#1F428D#1F428D

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

Color values

HEX#1F428D
RGBrgb(31, 66, 141)
HSLhsl(221, 64%, 34%)
HSVhsv(221, 78%, 55%)
CMYKcmyk(78%, 53.2%, 0%, 44.7%)
CIE-LABlab(29.69, 15.79, -45.29)
CIE-LCHlch(29.69, 47.96, 289.22°)
OKLaboklab(39.93% -0.016 -0.1304)
OKLCHoklch(39.93% 0.131 263)
XYZxyz(7.3193, 6.1100, 25.9877)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F428D #8D6A1F
analogous
#1F798D #1F428D #331F8D
triadic
#1F428D #8D1F42 #428D1F
tetradic
#1F428D #8D1F79 #8D6A1F #1F8D33
square
#1F428D #8D1F79 #8D6A1F #1F8D33
split-complementary
#1F428D #8D331F #798D1F
monochromatic
#091329 #142B5B #1F428D #2A59BF #4E7AD8

Accessibility & contrast

On white

9.45
#1F428D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F428D
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F428D#FFFFFF#000000##FFFFFF
##1F428D1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4B90
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#005461
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f428d;
/* rgb */ color: rgb(31, 66, 141);
/* oklch */ color: oklch(39.9% 0.131 263.0);
Tailwind
colors: {
  custom: {
    50: '#6c75af',
    500: '#1f428d',
    950: '#000000',
  },
}
SCSS
$custom: #1f428d;
$custom-light: #6c75af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f428d",
  "rgb": {
    "r": 31,
    "g": 66,
    "b": 141
  },
  "hsl": {
    "h": 220.909,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39934,
    "c": 0.13135,
    "h": 263
  },
  "luminance": 0.06111
}

Semantic roles & 50–950 ramp

primary
#1F428D
secondary
#BB984D
accent
#B241E7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #1F428D

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

Preview Lab → · Contrast checker → · Palette generator →

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