#1F4780#1F4780

#1F4780 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.1% C 0.106 H 257.7°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#1F4780
RGBrgb(31, 71, 128)
HSLhsl(215, 61%, 31%)
HSVhsv(215, 76%, 50%)
CMYKcmyk(75.8%, 44.5%, 0%, 49.8%)
CIE-LABlab(30.29, 7.14, -36.27)
CIE-LCHlch(30.29, 36.97, 281.14°)
OKLaboklab(40.11% -0.0226 -0.1037)
OKLCHoklch(40.11% 0.106 257.7)
XYZxyz(6.7132, 6.3556, 21.2908)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4780 #80581F
analogous
#1F7780 #1F4780 #281F80
triadic
#1F4780 #801F47 #47801F
tetradic
#1F4780 #801F77 #80581F #1F8028
square
#1F4780 #801F77 #80581F #1F8028
split-complementary
#1F4780 #80281F #77801F
monochromatic
#07101D #132C4F #1F4780 #2B62B1 #4780D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F4780#FFFFFF#000000##FFFFFF
##1F47801.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)
#2B4C82
Deuteranopia (green-blind)
#1A437F
Tritanopia (blue-blind)
#00545D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f4780;
/* rgb */ color: rgb(31, 71, 128);
/* oklch */ color: oklch(40.1% 0.106 257.7);
Tailwind
colors: {
  custom: {
    50: '#6979a5',
    500: '#1f4780',
    950: '#000000',
  },
}
SCSS
$custom: #1f4780;
$custom-light: #6979a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4780",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 128
  },
  "hsl": {
    "h": 215.258,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.4011,
    "c": 0.10619,
    "h": 257.7
  },
  "luminance": 0.06356
}

Semantic roles & 50–950 ramp

primary
#1F4780
secondary
#B38748
accent
#A244E4
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #1F4780

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

Preview Lab → · Contrast checker → · Palette generator →

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