#1F428E#1F428E

#1F428E is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.0% C 0.133 H 263.1°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#1F428E
RGBrgb(31, 66, 142)
HSLhsl(221, 64%, 34%)
HSVhsv(221, 78%, 56%)
CMYKcmyk(78.2%, 53.5%, 0%, 44.3%)
CIE-LABlab(29.76, 16.19, -45.78)
CIE-LCHlch(29.76, 48.56, 289.48°)
OKLaboklab(40.01% -0.0159 -0.1318)
OKLCHoklch(40.01% 0.133 263.1)
XYZxyz(7.3940, 6.1399, 26.3814)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F428E #8E6B1F
analogous
#1F7A8E #1F428E #341F8E
triadic
#1F428E #8E1F42 #428E1F
tetradic
#1F428E #8E1F7A #8E6B1F #1F8E34
square
#1F428E #8E1F7A #8E6B1F #1F8E34
split-complementary
#1F428E #8E341F #7A8E1F
monochromatic
#09132A #142B5C #1F428E #2A59C0 #4F7AD9

Accessibility & contrast

On white

9.42
#1F428E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#1F428E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F428E
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F428E#FFFFFF#000000##FFFFFF
##1F428E1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f428e;
/* rgb */ color: rgb(31, 66, 142);
/* oklch */ color: oklch(40.0% 0.133 263.1);
Tailwind
colors: {
  custom: {
    50: '#6c75b0',
    500: '#1f428e',
    950: '#000000',
  },
}
SCSS
$custom: #1f428e;
$custom-light: #6c75b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f428e",
  "rgb": {
    "r": 31,
    "g": 66,
    "b": 142
  },
  "hsl": {
    "h": 221.081,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.40014,
    "c": 0.13278,
    "h": 263.1
  },
  "luminance": 0.06141
}

Semantic roles & 50–950 ramp

primary
#1F428E
secondary
#BB994D
accent
#B341E7
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #1F428E

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

Preview Lab → · Contrast checker → · Palette generator →

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