#1F4994#1F4994

#1F4994 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.0% C 0.132 H 260.9°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#1F4994
RGBrgb(31, 73, 148)
HSLhsl(218, 65%, 35%)
HSVhsv(218, 79%, 58%)
CMYKcmyk(79.1%, 50.7%, 0%, 42%)
CIE-LABlab(32.24, 13.80, -45.45)
CIE-LCHlch(32.24, 47.50, 286.89°)
OKLaboklab(42.05% -0.0208 -0.1307)
OKLCHoklch(42.05% 0.132 260.9)
XYZxyz(8.2910, 7.1936, 28.9628)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4994 #946A1F
analogous
#1F8394 #1F4994 #301F94
triadic
#1F4994 #941F49 #49941F
tetradic
#1F4994 #941F83 #946A1F #1F9430
square
#1F4994 #941F83 #946A1F #1F9430
split-complementary
#1F4994 #94301F #83941F
monochromatic
#0A172F #143061 #1F4994 #2A62C7 #5383DB

Accessibility & contrast

On white

8.61
#1F4994 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#1F4994 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4994
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4994#FFFFFF#000000##FFFFFF
##1F49941.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5297
Deuteranopia (green-blind)
#004793
Tritanopia (blue-blind)
#005B67
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f4994;
/* rgb */ color: rgb(31, 73, 148);
/* oklch */ color: oklch(42.0% 0.132 260.9);
Tailwind
colors: {
  custom: {
    50: '#6d7bb4',
    500: '#1f4994',
    950: '#000000',
  },
}
SCSS
$custom: #1f4994;
$custom-light: #6d7bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4994",
  "rgb": {
    "r": 31,
    "g": 73,
    "b": 148
  },
  "hsl": {
    "h": 218.462,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.42045,
    "c": 0.13235,
    "h": 260.9
  },
  "luminance": 0.07195
}

Semantic roles & 50–950 ramp

primary
#1F4994
secondary
#BE9751
accent
#AC3FE8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4994

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

Preview Lab → · Contrast checker → · Palette generator →

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