#1F4785#1F4785

#1F4785 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.5% C 0.113 H 259.0°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#1F4785
RGBrgb(31, 71, 133)
HSLhsl(216, 62%, 32%)
HSVhsv(216, 77%, 52%)
CMYKcmyk(76.7%, 46.6%, 0%, 47.8%)
CIE-LABlab(30.62, 9.15, -38.85)
CIE-LCHlch(30.62, 39.91, 283.25°)
OKLaboklab(40.47% -0.0216 -0.1113)
OKLCHoklch(40.47% 0.113 259)
XYZxyz(7.0504, 6.4905, 23.0670)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4785 #855D1F
analogous
#1F7A85 #1F4785 #2A1F85
triadic
#1F4785 #851F47 #47851F
tetradic
#1F4785 #851F7A #855D1F #1F852A
square
#1F4785 #851F7A #855D1F #1F852A
split-complementary
#1F4785 #852A1F #7A851F
monochromatic
#081222 #132D53 #1F4785 #2B61B7 #4A80D5

Accessibility & contrast

On white

9.14
#1F4785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4785
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4785#FFFFFF#000000##FFFFFF
##1F47851.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274D87
Deuteranopia (green-blind)
#114484
Tritanopia (blue-blind)
#00565F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f4785;
/* rgb */ color: rgb(31, 71, 133);
/* oklch */ color: oklch(40.5% 0.113 259.0);
Tailwind
colors: {
  custom: {
    50: '#6a79a9',
    500: '#1f4785',
    950: '#000000',
  },
}
SCSS
$custom: #1f4785;
$custom-light: #6a79a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4785",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 133
  },
  "hsl": {
    "h": 216.471,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40466,
    "c": 0.11342,
    "h": 259
  },
  "luminance": 0.06491
}

Semantic roles & 50–950 ramp

primary
#1F4785
secondary
#B78C49
accent
#A543E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #1F4785

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

Preview Lab → · Contrast checker → · Palette generator →

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