#1F4ABB#1F4ABB

#1F4ABB is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.5% C 0.184 H 264.3°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#1F4ABB
RGBrgb(31, 74, 187)
HSLhsl(223, 72%, 43%)
HSVhsv(223, 83%, 73%)
CMYKcmyk(83.4%, 60.4%, 0%, 26.7%)
CIE-LABlab(35.55, 28.51, -63.41)
CIE-LCHlch(35.55, 69.52, 294.21°)
OKLaboklab(45.49% -0.0184 -0.1835)
OKLCHoklch(45.49% 0.184 264.3)
XYZxyz(11.9803, 8.7753, 48.0664)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4ABB #BB901F
analogous
#1F98BB #1F4ABB #421FBB
triadic
#1F4ABB #BB1F4A #4ABB1F
tetradic
#1F4ABB #BB1F98 #BB901F #1FBB42
square
#1F4ABB #BB1F98 #BB901F #1FBB42
split-complementary
#1F4ABB #BB421F #98BB1F
monochromatic
#0E2052 #163587 #1F4ABB #3967DE #6E8FE7

Accessibility & contrast

On white

7.62
#1F4ABB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#1F4ABB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4ABB
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4ABB#FFFFFF#000000##FFFFFF
##1F4ABB1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBF
Deuteranopia (green-blind)
#004DB9
Tritanopia (blue-blind)
#00677B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #1f4abb;
/* rgb */ color: rgb(31, 74, 187);
/* oklch */ color: oklch(45.5% 0.184 264.3);
Tailwind
colors: {
  custom: {
    50: '#777cd0',
    500: '#1f4abb',
    950: '#000000',
  },
}
SCSS
$custom: #1f4abb;
$custom-light: #777cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4abb",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 187
  },
  "hsl": {
    "h": 223.462,
    "s": 71.56,
    "l": 42.745
  },
  "oklch": {
    "l": 0.45493,
    "c": 0.18439,
    "h": 264.3
  },
  "luminance": 0.08777
}

Semantic roles & 50–950 ramp

primary
#1F4ABB
secondary
#CDB169
accent
#BC3AEE
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0914
muted
#7C7B82

Preview Lab

Preview with #1F4ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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