#1F4689#1F4689

#1F4689 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 40.5% C 0.120 H 260.5°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#1F4689
RGBrgb(31, 70, 137)
HSLhsl(218, 63%, 33%)
HSVhsv(218, 77%, 54%)
CMYKcmyk(77.4%, 48.9%, 0%, 46.3%)
CIE-LABlab(30.59, 11.44, -41.38)
CIE-LCHlch(30.59, 42.93, 285.45°)
OKLaboklab(40.53% -0.02 -0.1188)
OKLCHoklch(40.53% 0.12 260.5)
XYZxyz(7.2690, 6.4769, 24.5291)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4689 #89621F
analogous
#1F7B89 #1F4689 #2D1F89
triadic
#1F4689 #891F46 #46891F
tetradic
#1F4689 #891F7B #89621F #1F892D
square
#1F4689 #891F7B #89621F #1F892D
split-complementary
#1F4689 #892D1F #7B891F
monochromatic
#081325 #142C57 #1F4689 #2A5FBB #4C7FD6

Accessibility & contrast

On white

9.15
#1F4689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#1F4689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4689
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4689#FFFFFF#000000##FFFFFF
##1F46891.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214D8B
Deuteranopia (green-blind)
#024388
Tritanopia (blue-blind)
#005661
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f4689;
/* rgb */ color: rgb(31, 70, 137);
/* oklch */ color: oklch(40.5% 0.120 260.5);
Tailwind
colors: {
  custom: {
    50: '#6b78ac',
    500: '#1f4689',
    950: '#000000',
  },
}
SCSS
$custom: #1f4689;
$custom-light: #6b78ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4689",
  "rgb": {
    "r": 31,
    "g": 70,
    "b": 137
  },
  "hsl": {
    "h": 217.925,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.40528,
    "c": 0.12045,
    "h": 260.5
  },
  "luminance": 0.06478
}

Semantic roles & 50–950 ramp

primary
#1F4689
secondary
#B9904B
accent
#AA42E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1F4689

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

Preview Lab → · Contrast checker → · Palette generator →

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