#1F4CB2#1F4CB2

#1F4CB2 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.1% C 0.170 H 263.3°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#1F4CB2
RGBrgb(31, 76, 178)
HSLhsl(222, 70%, 41%)
HSVhsv(222, 83%, 70%)
CMYKcmyk(82.6%, 57.3%, 0%, 30.2%)
CIE-LABlab(35.35, 23.68, -58.43)
CIE-LCHlch(35.35, 63.04, 292.06°)
OKLaboklab(45.11% -0.02 -0.1688)
OKLCHoklch(45.11% 0.17 263.3)
XYZxyz(11.1825, 8.6732, 43.1956)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4CB2 #B2851F
analogous
#1F95B2 #1F4CB2 #3C1FB2
triadic
#1F4CB2 #B21F4C #4CB21F
tetradic
#1F4CB2 #B21F95 #B2851F #1FB23C
square
#1F4CB2 #B21F95 #B2851F #1FB23C
split-complementary
#1F4CB2 #B23C1F #95B21F
monochromatic
#0D1F4A #16367E #1F4CB2 #3366DB #678DE5

Accessibility & contrast

On white

7.68
#1F4CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#1F4CB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4CB2
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4CB2#FFFFFF#000000##FFFFFF
##1F4CB21.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB5
Deuteranopia (green-blind)
#004DB0
Tritanopia (blue-blind)
#006677
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #1f4cb2;
/* rgb */ color: rgb(31, 76, 178);
/* oklch */ color: oklch(45.1% 0.170 263.3);
Tailwind
colors: {
  custom: {
    50: '#757dca',
    500: '#1f4cb2',
    950: '#000000',
  },
}
SCSS
$custom: #1f4cb2;
$custom-light: #757dca;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4cb2",
  "rgb": {
    "r": 31,
    "g": 76,
    "b": 178
  },
  "hsl": {
    "h": 221.633,
    "s": 70.335,
    "l": 40.98
  },
  "oklch": {
    "l": 0.45114,
    "c": 0.17,
    "h": 263.3
  },
  "luminance": 0.08675
}

Semantic roles & 50–950 ramp

primary
#1F4CB2
secondary
#CAAA63
accent
#B63BED
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #1F4CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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