#1F4BB2#1F4BB2

#1F4BB2 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.9% C 0.171 H 263.5°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#1F4BB2
RGBrgb(31, 75, 178)
HSLhsl(222, 70%, 41%)
HSVhsv(222, 83%, 70%)
CMYKcmyk(82.6%, 57.9%, 0%, 30.2%)
CIE-LABlab(35.08, 24.35, -58.87)
CIE-LCHlch(35.08, 63.70, 292.47°)
OKLaboklab(44.91% -0.0193 -0.1701)
OKLCHoklch(44.91% 0.171 263.5)
XYZxyz(11.1142, 8.5365, 43.1728)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4BB2 #B2861F
analogous
#1F94B2 #1F4BB2 #3C1FB2
triadic
#1F4BB2 #B21F4B #4BB21F
tetradic
#1F4BB2 #B21F94 #B2861F #1FB23C
square
#1F4BB2 #B21F94 #B2861F #1FB23C
split-complementary
#1F4BB2 #B23C1F #94B21F
monochromatic
#0D1F4A #16357E #1F4BB2 #3365DB #678CE5

Accessibility & contrast

On white

7.76
#1F4BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#1F4BB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4BB2
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4BB2#FFFFFF#000000##FFFFFF
##1F4BB21.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B5
Deuteranopia (green-blind)
#004CB0
Tritanopia (blue-blind)
#006577
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f4bb2;
/* rgb */ color: rgb(31, 75, 178);
/* oklch */ color: oklch(44.9% 0.171 263.5);
Tailwind
colors: {
  custom: {
    50: '#757cca',
    500: '#1f4bb2',
    950: '#000000',
  },
}
SCSS
$custom: #1f4bb2;
$custom-light: #757cca;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4bb2",
  "rgb": {
    "r": 31,
    "g": 75,
    "b": 178
  },
  "hsl": {
    "h": 222.041,
    "s": 70.335,
    "l": 40.98
  },
  "oklch": {
    "l": 0.44909,
    "c": 0.17123,
    "h": 263.5
  },
  "luminance": 0.08538
}

Semantic roles & 50–950 ramp

primary
#1F4BB2
secondary
#CAAB63
accent
#B83BED
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #1F4BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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