#1F4B99#1F4B99

#1F4B99 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 42.9% C 0.137 H 260.9°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#1F4B99
RGBrgb(31, 75, 153)
HSLhsl(218, 66%, 36%)
HSVhsv(218, 80%, 60%)
CMYKcmyk(79.7%, 51%, 0%, 40%)
CIE-LABlab(33.18, 14.44, -46.97)
CIE-LCHlch(33.18, 49.14, 287.10°)
OKLaboklab(42.88% -0.0217 -0.1351)
OKLCHoklch(42.88% 0.137 260.9)
XYZxyz(8.8288, 7.6223, 31.1368)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4B99 #996D1F
analogous
#1F8899 #1F4B99 #301F99
triadic
#1F4B99 #991F4B #4B991F
tetradic
#1F4B99 #991F88 #996D1F #1F9930
square
#1F4B99 #991F88 #996D1F #1F9930
split-complementary
#1F4B99 #99301F #88991F
monochromatic
#0A1933 #153266 #1F4B99 #2964CC #5686DD

Accessibility & contrast

On white

8.32
#1F4B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#1F4B99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4B99
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4B99#FFFFFF#000000##FFFFFF
##1F4B991.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B549C
Deuteranopia (green-blind)
#004997
Tritanopia (blue-blind)
#005E6A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f4b99;
/* rgb */ color: rgb(31, 75, 153);
/* oklch */ color: oklch(42.9% 0.137 260.9);
Tailwind
colors: {
  custom: {
    50: '#6e7cb8',
    500: '#1f4b99',
    950: '#000000',
  },
}
SCSS
$custom: #1f4b99;
$custom-light: #6e7cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4b99",
  "rgb": {
    "r": 31,
    "g": 75,
    "b": 153
  },
  "hsl": {
    "h": 218.361,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42877,
    "c": 0.13687,
    "h": 260.9
  },
  "luminance": 0.07623
}

Semantic roles & 50–950 ramp

primary
#1F4B99
secondary
#C09954
accent
#AC3FE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4B99

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

Preview Lab → · Contrast checker → · Palette generator →

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