#1F4FAE#1F4FAE

#1F4FAE is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.4% C 0.161 H 262.0°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#1F4FAE
RGBrgb(31, 79, 174)
HSLhsl(220, 70%, 40%)
HSVhsv(220, 82%, 68%)
CMYKcmyk(82.2%, 54.6%, 0%, 31.8%)
CIE-LABlab(35.86, 20.10, -55.22)
CIE-LCHlch(35.86, 58.76, 290.00°)
OKLaboklab(45.41% -0.0223 -0.1593)
OKLCHoklch(45.41% 0.161 262)
XYZxyz(10.9983, 8.9379, 41.1817)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4FAE #AE7E1F
analogous
#1F96AE #1F4FAE #361FAE
triadic
#1F4FAE #AE1F4F #4FAE1F
tetradic
#1F4FAE #AE1F96 #AE7E1F #1FAE36
square
#1F4FAE #AE1F96 #AE7E1F #1FAE36
split-complementary
#1F4FAE #AE361F #96AE1F
monochromatic
#0C2046 #16377A #1F4FAE #3069DA #648FE3

Accessibility & contrast

On white

7.53
#1F4FAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#1F4FAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4FAE
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4FAE#FFFFFF#000000##FFFFFF
##1F4FAE1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB1
Deuteranopia (green-blind)
#004EAC
Tritanopia (blue-blind)
#006676
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #1f4fae;
/* rgb */ color: rgb(31, 79, 174);
/* oklch */ color: oklch(45.4% 0.161 262.0);
Tailwind
colors: {
  custom: {
    50: '#747fc7',
    500: '#1f4fae',
    950: '#000000',
  },
}
SCSS
$custom: #1f4fae;
$custom-light: #747fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4fae",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 174
  },
  "hsl": {
    "h": 219.86,
    "s": 69.756,
    "l": 40.196
  },
  "oklch": {
    "l": 0.45407,
    "c": 0.16087,
    "h": 262
  },
  "luminance": 0.08939
}

Semantic roles & 50–950 ramp

primary
#1F4FAE
secondary
#C8A660
accent
#B13BED
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #1F4FAE

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

Preview Lab → · Contrast checker → · Palette generator →

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