#1F4EB4#1F4EB4

#1F4EB4 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.7% C 0.170 H 262.9°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#1F4EB4
RGBrgb(31, 78, 180)
HSLhsl(221, 71%, 41%)
HSVhsv(221, 83%, 71%)
CMYKcmyk(82.8%, 56.7%, 0%, 29.4%)
CIE-LABlab(36.05, 23.12, -58.47)
CIE-LCHlch(36.05, 62.87, 291.58°)
OKLaboklab(45.69% -0.0211 -0.1689)
OKLCHoklch(45.69% 0.17 262.9)
XYZxyz(11.5247, 9.0340, 44.3075)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4EB4 #B4851F
analogous
#1F99B4 #1F4EB4 #3B1FB4
triadic
#1F4EB4 #B41F4E #4EB41F
tetradic
#1F4EB4 #B41F99 #B4851F #1FB43B
square
#1F4EB4 #B41F99 #B4851F #1FB43B
split-complementary
#1F4EB4 #B43B1F #99B41F
monochromatic
#0D214C #163780 #1F4EB4 #3469DC #6890E5

Accessibility & contrast

On white

7.48
#1F4EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#1F4EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4EB4
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4EB4#FFFFFF#000000##FFFFFF
##1F4EB41.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB8
Deuteranopia (green-blind)
#004EB2
Tritanopia (blue-blind)
#006879
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #1f4eb4;
/* rgb */ color: rgb(31, 78, 180);
/* oklch */ color: oklch(45.7% 0.170 262.9);
Tailwind
colors: {
  custom: {
    50: '#757ecb',
    500: '#1f4eb4',
    950: '#000000',
  },
}
SCSS
$custom: #1f4eb4;
$custom-light: #757ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4eb4",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 180
  },
  "hsl": {
    "h": 221.074,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.45692,
    "c": 0.17021,
    "h": 262.9
  },
  "luminance": 0.09035
}

Semantic roles & 50–950 ramp

primary
#1F4EB4
secondary
#CBAA64
accent
#B53AED
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #1F4EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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