#1F4CB4#1F4CB4

#1F4CB4 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.3% C 0.173 H 263.4°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#1F4CB4
RGBrgb(31, 76, 180)
HSLhsl(222, 71%, 41%)
HSVhsv(222, 83%, 71%)
CMYKcmyk(82.8%, 57.8%, 0%, 29.4%)
CIE-LABlab(35.51, 24.46, -59.35)
CIE-LCHlch(35.51, 64.19, 292.40°)
OKLaboklab(45.28% -0.0198 -0.1715)
OKLCHoklch(45.28% 0.173 263.4)
XYZxyz(11.3848, 8.7541, 44.2608)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4CB4 #B4871F
analogous
#1F97B4 #1F4CB4 #3D1FB4
triadic
#1F4CB4 #B41F4C #4CB41F
tetradic
#1F4CB4 #B41F97 #B4871F #1FB43D
square
#1F4CB4 #B41F97 #B4871F #1FB43D
split-complementary
#1F4CB4 #B43D1F #97B41F
monochromatic
#0D204C #163680 #1F4CB4 #3467DC #688EE5

Accessibility & contrast

On white

7.63
#1F4CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#1F4CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4CB4
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4CB4#FFFFFF#000000##FFFFFF
##1F4CB41.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f4cb4;
/* rgb */ color: rgb(31, 76, 180);
/* oklch */ color: oklch(45.3% 0.173 263.4);
Tailwind
colors: {
  custom: {
    50: '#757dcb',
    500: '#1f4cb4',
    950: '#000000',
  },
}
SCSS
$custom: #1f4cb4;
$custom-light: #757dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4cb4",
  "rgb": {
    "r": 31,
    "g": 76,
    "b": 180
  },
  "hsl": {
    "h": 221.879,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.45283,
    "c": 0.17267,
    "h": 263.4
  },
  "luminance": 0.08755
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F4CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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