#1F4589#1F4589

#1F4589 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.3% C 0.122 H 261.0°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#1F4589
RGBrgb(31, 69, 137)
HSLhsl(218, 63%, 33%)
HSVhsv(218, 77%, 54%)
CMYKcmyk(77.4%, 49.6%, 0%, 46.3%)
CIE-LABlab(30.29, 12.12, -41.86)
CIE-LCHlch(30.29, 43.58, 286.15°)
OKLaboklab(40.3% -0.0191 -0.1202)
OKLCHoklch(40.3% 0.122 261)
XYZxyz(7.2069, 6.3529, 24.5085)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4589 #89631F
analogous
#1F7A89 #1F4589 #2E1F89
triadic
#1F4589 #891F45 #45891F
tetradic
#1F4589 #891F7A #89631F #1F892E
square
#1F4589 #891F7A #89631F #1F892E
split-complementary
#1F4589 #892E1F #7A891F
monochromatic
#081325 #142C57 #1F4589 #2A5EBB #4C7ED6

Accessibility & contrast

On white

9.25
#1F4589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#1F4589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4589
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4589#FFFFFF#000000##FFFFFF
##1F45891.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4C8C
Deuteranopia (green-blind)
#004388
Tritanopia (blue-blind)
#005560
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f4589;
/* rgb */ color: rgb(31, 69, 137);
/* oklch */ color: oklch(40.3% 0.122 261.0);
Tailwind
colors: {
  custom: {
    50: '#6b78ac',
    500: '#1f4589',
    950: '#000000',
  },
}
SCSS
$custom: #1f4589;
$custom-light: #6b78ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4589",
  "rgb": {
    "r": 31,
    "g": 69,
    "b": 137
  },
  "hsl": {
    "h": 218.491,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.40298,
    "c": 0.12173,
    "h": 261
  },
  "luminance": 0.06354
}

Semantic roles & 50–950 ramp

primary
#1F4589
secondary
#B9924B
accent
#AB42E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1F4589

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

Preview Lab → · Contrast checker → · Palette generator →

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