#1F4EAE#1F4EAE

#1F4EAE is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.2% C 0.162 H 262.3°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#1F4EAE
RGBrgb(31, 78, 174)
HSLhsl(220, 70%, 40%)
HSVhsv(220, 82%, 68%)
CMYKcmyk(82.2%, 55.2%, 0%, 31.8%)
CIE-LABlab(35.59, 20.77, -55.67)
CIE-LCHlch(35.59, 59.41, 290.46°)
OKLaboklab(45.2% -0.0216 -0.1607)
OKLCHoklch(45.2% 0.162 262.3)
XYZxyz(10.9267, 8.7948, 41.1579)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4EAE #AE7F1F
analogous
#1F95AE #1F4EAE #381FAE
triadic
#1F4EAE #AE1F4E #4EAE1F
tetradic
#1F4EAE #AE1F95 #AE7F1F #1FAE38
square
#1F4EAE #AE1F95 #AE7F1F #1FAE38
split-complementary
#1F4EAE #AE381F #95AE1F
monochromatic
#0C1F46 #16377A #1F4EAE #3068DA #648EE3

Accessibility & contrast

On white

7.61
#1F4EAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#1F4EAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4EAE
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4EAE#FFFFFF#000000##FFFFFF
##1F4EAE1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f4eae;
/* rgb */ color: rgb(31, 78, 174);
/* oklch */ color: oklch(45.2% 0.162 262.3);
Tailwind
colors: {
  custom: {
    50: '#747ec7',
    500: '#1f4eae',
    950: '#000000',
  },
}
SCSS
$custom: #1f4eae;
$custom-light: #747ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4eae",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 174
  },
  "hsl": {
    "h": 220.28,
    "s": 69.756,
    "l": 40.196
  },
  "oklch": {
    "l": 0.45196,
    "c": 0.16211,
    "h": 262.3
  },
  "luminance": 0.08796
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F4EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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