#1F4FC2#1F4FC2

#1F4FC2 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.1% C 0.188 H 263.6°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#1F4FC2
RGBrgb(31, 79, 194)
HSLhsl(222, 72%, 44%)
HSVhsv(222, 84%, 76%)
CMYKcmyk(84%, 59.3%, 0%, 23.9%)
CIE-LABlab(37.44, 27.90, -64.42)
CIE-LCHlch(37.44, 70.20, 293.42°)
OKLaboklab(47.09% -0.0209 -0.1864)
OKLCHoklch(47.09% 0.188 263.6)
XYZxyz(13.0952, 9.7767, 52.2254)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4FC2 #C2921F
analogous
#1FA1C2 #1F4FC2 #411FC2
triadic
#1F4FC2 #C21F4F #4FC21F
tetradic
#1F4FC2 #C21FA1 #C2921F #1FC241
square
#1F4FC2 #C21FA1 #C2921F #1FC241
split-complementary
#1F4FC2 #C2411F #A1C21F
monochromatic
#0E2458 #173A8D #1F4FC2 #3E6EE0 #7395E9

Accessibility & contrast

On white

7.11
#1F4FC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#1F4FC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4FC2
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4FC2#FFFFFF#000000##FFFFFF
##1F4FC21.007.112.967.11
#FFFFFF7.111.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C6
Deuteranopia (green-blind)
#0051C0
Tritanopia (blue-blind)
#006C81
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #1f4fc2;
/* rgb */ color: rgb(31, 79, 194);
/* oklch */ color: oklch(47.1% 0.188 263.6);
Tailwind
colors: {
  custom: {
    50: '#797fd5',
    500: '#1f4fc2',
    950: '#000000',
  },
}
SCSS
$custom: #1f4fc2;
$custom-light: #797fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4fc2",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 194
  },
  "hsl": {
    "h": 222.331,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47086,
    "c": 0.18753,
    "h": 263.6
  },
  "luminance": 0.09778
}

Semantic roles & 50–950 ramp

primary
#1F4FC2
secondary
#CFB36D
accent
#B939EF
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #1F4FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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