#1F4480#1F4480

#1F4480 is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.4% C 0.110 H 259.6°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#1F4480
RGBrgb(31, 68, 128)
HSLhsl(217, 61%, 31%)
HSVhsv(217, 76%, 50%)
CMYKcmyk(75.8%, 46.9%, 0%, 49.8%)
CIE-LABlab(29.37, 9.19, -37.75)
CIE-LCHlch(29.37, 38.85, 283.69°)
OKLaboklab(39.4% -0.0197 -0.1081)
OKLCHoklch(39.4% 0.11 259.6)
XYZxyz(6.5271, 5.9833, 21.2288)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4480 #805B1F
analogous
#1F7480 #1F4480 #2A1F80
triadic
#1F4480 #801F44 #44801F
tetradic
#1F4480 #801F74 #805B1F #1F802A
square
#1F4480 #801F74 #805B1F #1F802A
split-complementary
#1F4480 #802A1F #74801F
monochromatic
#07101D #132A4F #1F4480 #2B5EB1 #477CD2

Accessibility & contrast

On white

9.56
#1F4480 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#1F4480 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4480
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4480#FFFFFF#000000##FFFFFF
##1F44801.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254A82
Deuteranopia (green-blind)
#11417F
Tritanopia (blue-blind)
#00525B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f4480;
/* rgb */ color: rgb(31, 68, 128);
/* oklch */ color: oklch(39.4% 0.110 259.6);
Tailwind
colors: {
  custom: {
    50: '#6977a5',
    500: '#1f4480',
    950: '#000000',
  },
}
SCSS
$custom: #1f4480;
$custom-light: #6977a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4480",
  "rgb": {
    "r": 31,
    "g": 68,
    "b": 128
  },
  "hsl": {
    "h": 217.113,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.39398,
    "c": 0.10993,
    "h": 259.6
  },
  "luminance": 0.05984
}

Semantic roles & 50–950 ramp

primary
#1F4480
secondary
#B38A48
accent
#A744E4
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1F4480

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

Preview Lab → · Contrast checker → · Palette generator →

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