#1F4989#1F4989

#1F4989 is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.2% C 0.117 H 258.8°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#1F4989
RGBrgb(31, 73, 137)
HSLhsl(216, 63%, 33%)
HSVhsv(216, 77%, 54%)
CMYKcmyk(77.4%, 46.7%, 0%, 46.3%)
CIE-LABlab(31.49, 9.39, -39.92)
CIE-LCHlch(31.49, 41.01, 283.24°)
OKLaboklab(41.22% -0.0227 -0.1144)
OKLCHoklch(41.22% 0.117 258.8)
XYZxyz(7.4613, 6.8617, 24.5933)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4989 #895F1F
analogous
#1F7E89 #1F4989 #2A1F89
triadic
#1F4989 #891F49 #49891F
tetradic
#1F4989 #891F7E #895F1F #1F892A
square
#1F4989 #891F7E #895F1F #1F892A
split-complementary
#1F4989 #892A1F #7E891F
monochromatic
#081425 #142E57 #1F4989 #2A64BB #4C83D6

Accessibility & contrast

On white

8.85
#1F4989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#1F4989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4989
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4989#FFFFFF#000000##FFFFFF
##1F49891.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284F8B
Deuteranopia (green-blind)
#104688
Tritanopia (blue-blind)
#005862
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f4989;
/* rgb */ color: rgb(31, 73, 137);
/* oklch */ color: oklch(41.2% 0.117 258.8);
Tailwind
colors: {
  custom: {
    50: '#6b7bac',
    500: '#1f4989',
    950: '#000000',
  },
}
SCSS
$custom: #1f4989;
$custom-light: #6b7bac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4989",
  "rgb": {
    "r": 31,
    "g": 73,
    "b": 137
  },
  "hsl": {
    "h": 216.226,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.41224,
    "c": 0.11666,
    "h": 258.8
  },
  "luminance": 0.06863
}

Semantic roles & 50–950 ramp

primary
#1F4989
secondary
#B98D4B
accent
#A542E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #1F4989

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

Preview Lab → · Contrast checker → · Palette generator →

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