#1F4789#1F4789

#1F4789 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.8% C 0.119 H 259.9°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#1F4789
RGBrgb(31, 71, 137)
HSLhsl(217, 63%, 33%)
HSVhsv(217, 77%, 54%)
CMYKcmyk(77.4%, 48.2%, 0%, 46.3%)
CIE-LABlab(30.89, 10.75, -40.89)
CIE-LCHlch(30.89, 42.28, 284.73°)
OKLaboklab(40.76% -0.0209 -0.1173)
OKLCHoklch(40.76% 0.119 259.9)
XYZxyz(7.3320, 6.6031, 24.5502)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4789 #89611F
analogous
#1F7C89 #1F4789 #2C1F89
triadic
#1F4789 #891F47 #47891F
tetradic
#1F4789 #891F7C #89611F #1F892C
square
#1F4789 #891F7C #89611F #1F892C
split-complementary
#1F4789 #892C1F #7C891F
monochromatic
#081325 #142D57 #1F4789 #2A61BB #4C80D6

Accessibility & contrast

On white

9.05
#1F4789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#1F4789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4789
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4789#FFFFFF#000000##FFFFFF
##1F47891.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234E8B
Deuteranopia (green-blind)
#074488
Tritanopia (blue-blind)
#005761
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1f4789;
/* rgb */ color: rgb(31, 71, 137);
/* oklch */ color: oklch(40.8% 0.119 259.9);
Tailwind
colors: {
  custom: {
    50: '#6b79ac',
    500: '#1f4789',
    950: '#000000',
  },
}
SCSS
$custom: #1f4789;
$custom-light: #6b79ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4789",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 137
  },
  "hsl": {
    "h": 217.358,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.40759,
    "c": 0.11918,
    "h": 259.9
  },
  "luminance": 0.06604
}

Semantic roles & 50–950 ramp

primary
#1F4789
secondary
#B98F4B
accent
#A842E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1F4789

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

Preview Lab → · Contrast checker → · Palette generator →

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