#1F4788#1F4788

#1F4788 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.7% C 0.118 H 259.7°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#1F4788
RGBrgb(31, 71, 136)
HSLhsl(217, 63%, 33%)
HSVhsv(217, 77%, 53%)
CMYKcmyk(77.2%, 47.8%, 0%, 46.7%)
CIE-LABlab(30.82, 10.35, -40.38)
CIE-LCHlch(30.82, 41.69, 284.38°)
OKLaboklab(40.69% -0.021 -0.1158)
OKLCHoklch(40.69% 0.118 259.7)
XYZxyz(7.2606, 6.5745, 24.1741)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4788 #88601F
analogous
#1F7B88 #1F4788 #2C1F88
triadic
#1F4788 #881F47 #47881F
tetradic
#1F4788 #881F7B #88601F #1F882C
square
#1F4788 #881F7B #88601F #1F882C
split-complementary
#1F4788 #882C1F #7B881F
monochromatic
#081324 #142D56 #1F4788 #2A61BA #4B80D6

Accessibility & contrast

On white

9.07
#1F4788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4788
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4788#FFFFFF#000000##FFFFFF
##1F47881.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244E8A
Deuteranopia (green-blind)
#0A4487
Tritanopia (blue-blind)
#005661
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1f4788;
/* rgb */ color: rgb(31, 71, 136);
/* oklch */ color: oklch(40.7% 0.118 259.7);
Tailwind
colors: {
  custom: {
    50: '#6b79ab',
    500: '#1f4788',
    950: '#000000',
  },
}
SCSS
$custom: #1f4788;
$custom-light: #6b79ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4788",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 136
  },
  "hsl": {
    "h": 217.143,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.40685,
    "c": 0.11774,
    "h": 259.7
  },
  "luminance": 0.06575
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F4788

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

Preview Lab → · Contrast checker → · Palette generator →

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