#1F4AB2#1F4AB2

#1F4AB2 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.7% C 0.172 H 263.8°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#1F4AB2
RGBrgb(31, 74, 178)
HSLhsl(222, 70%, 41%)
HSVhsv(222, 83%, 70%)
CMYKcmyk(82.6%, 58.4%, 0%, 30.2%)
CIE-LABlab(34.81, 25.02, -59.31)
CIE-LCHlch(34.81, 64.37, 292.87°)
OKLaboklab(44.71% -0.0187 -0.1714)
OKLCHoklch(44.71% 0.172 263.8)
XYZxyz(11.0469, 8.4019, 43.1503)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4AB2 #B2871F
analogous
#1F93B2 #1F4AB2 #3D1FB2
triadic
#1F4AB2 #B21F4A #4AB21F
tetradic
#1F4AB2 #B21F93 #B2871F #1FB23D
square
#1F4AB2 #B21F93 #B2871F #1FB23D
split-complementary
#1F4AB2 #B23D1F #93B21F
monochromatic
#0D1F4A #16347E #1F4AB2 #3364DB #678CE5

Accessibility & contrast

On white

7.83
#1F4AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#1F4AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4AB2
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4AB2#FFFFFF#000000##FFFFFF
##1F4AB21.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B6
Deuteranopia (green-blind)
#004BB0
Tritanopia (blue-blind)
#006476
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f4ab2;
/* rgb */ color: rgb(31, 74, 178);
/* oklch */ color: oklch(44.7% 0.172 263.8);
Tailwind
colors: {
  custom: {
    50: '#757bca',
    500: '#1f4ab2',
    950: '#000000',
  },
}
SCSS
$custom: #1f4ab2;
$custom-light: #757bca;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4ab2",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 178
  },
  "hsl": {
    "h": 222.449,
    "s": 70.335,
    "l": 40.98
  },
  "oklch": {
    "l": 0.44707,
    "c": 0.17246,
    "h": 263.8
  },
  "luminance": 0.08403
}

Semantic roles & 50–950 ramp

primary
#1F4AB2
secondary
#CAAC63
accent
#B93BED
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #1F4AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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