#1F4787#1F4787

#1F4787 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.6% C 0.116 H 259.5°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#1F4787
RGBrgb(31, 71, 135)
HSLhsl(217, 63%, 33%)
HSVhsv(217, 77%, 53%)
CMYKcmyk(77%, 47.4%, 0%, 47.1%)
CIE-LABlab(30.75, 9.95, -39.87)
CIE-LCHlch(30.75, 41.10, 284.01°)
OKLaboklab(40.61% -0.0212 -0.1143)
OKLCHoklch(40.61% 0.116 259.5)
XYZxyz(7.1899, 6.5462, 23.8016)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4787 #875F1F
analogous
#1F7B87 #1F4787 #2B1F87
triadic
#1F4787 #871F47 #47871F
tetradic
#1F4787 #871F7B #875F1F #1F872B
square
#1F4787 #871F7B #875F1F #1F872B
split-complementary
#1F4787 #872B1F #7B871F
monochromatic
#081323 #142D55 #1F4787 #2A61B9 #4B80D6

Accessibility & contrast

On white

9.09
#1F4787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#1F4787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4787
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4787#FFFFFF#000000##FFFFFF
##1F47871.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254D89
Deuteranopia (green-blind)
#0D4486
Tritanopia (blue-blind)
#005660
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f4787;
/* rgb */ color: rgb(31, 71, 135);
/* oklch */ color: oklch(40.6% 0.116 259.5);
Tailwind
colors: {
  custom: {
    50: '#6a79aa',
    500: '#1f4787',
    950: '#000000',
  },
}
SCSS
$custom: #1f4787;
$custom-light: #6a79aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4787",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 135
  },
  "hsl": {
    "h": 216.923,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.40612,
    "c": 0.11629,
    "h": 259.5
  },
  "luminance": 0.06547
}

Semantic roles & 50–950 ramp

primary
#1F4787
secondary
#B88E4A
accent
#A742E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #1F4787

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

Preview Lab → · Contrast checker → · Palette generator →

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