#1F4BB4#1F4BB4

#1F4BB4 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.1% C 0.174 H 263.6°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#1F4BB4
RGBrgb(31, 75, 180)
HSLhsl(222, 71%, 41%)
HSVhsv(222, 83%, 71%)
CMYKcmyk(82.8%, 58.3%, 0%, 29.4%)
CIE-LABlab(35.24, 25.13, -59.79)
CIE-LCHlch(35.24, 64.86, 292.80°)
OKLaboklab(45.08% -0.0192 -0.1728)
OKLCHoklch(45.08% 0.174 263.6)
XYZxyz(11.3164, 8.6174, 44.2381)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4BB4 #B4881F
analogous
#1F96B4 #1F4BB4 #3E1FB4
triadic
#1F4BB4 #B41F4B #4BB41F
tetradic
#1F4BB4 #B41F96 #B4881F #1FB43E
square
#1F4BB4 #B41F96 #B4881F #1FB43E
split-complementary
#1F4BB4 #B43E1F #96B41F
monochromatic
#0D1F4C #163580 #1F4BB4 #3466DC #688DE5

Accessibility & contrast

On white

7.71
#1F4BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#1F4BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4BB4
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4BB4#FFFFFF#000000##FFFFFF
##1F4BB41.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB8
Deuteranopia (green-blind)
#004CB2
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #1f4bb4;
/* rgb */ color: rgb(31, 75, 180);
/* oklch */ color: oklch(45.1% 0.174 263.6);
Tailwind
colors: {
  custom: {
    50: '#757ccb',
    500: '#1f4bb4',
    950: '#000000',
  },
}
SCSS
$custom: #1f4bb4;
$custom-light: #757ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4bb4",
  "rgb": {
    "r": 31,
    "g": 75,
    "b": 180
  },
  "hsl": {
    "h": 222.282,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.45081,
    "c": 0.17391,
    "h": 263.6
  },
  "luminance": 0.08619
}

Semantic roles & 50–950 ramp

primary
#1F4BB4
secondary
#CBAC64
accent
#B93AED
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #1F4BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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