#1F4080#1F4080

#1F4080 is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.5% C 0.115 H 262.0°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#1F4080
RGBrgb(31, 64, 128)
HSLhsl(220, 61%, 31%)
HSVhsv(220, 76%, 50%)
CMYKcmyk(75.8%, 50%, 0%, 49.8%)
CIE-LABlab(28.16, 11.95, -39.70)
CIE-LCHlch(28.16, 41.46, 286.75°)
OKLaboklab(38.46% -0.016 -0.114)
OKLCHoklch(38.46% 0.115 262)
XYZxyz(6.2934, 5.5159, 21.1509)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4080 #805F1F
analogous
#1F7080 #1F4080 #2F1F80
triadic
#1F4080 #801F40 #40801F
tetradic
#1F4080 #801F70 #805F1F #1F802F
square
#1F4080 #801F70 #805F1F #1F802F
split-complementary
#1F4080 #802F1F #70801F
monochromatic
#070F1D #13274F #1F4080 #2B59B1 #4776D2

Accessibility & contrast

On white

9.98
#1F4080 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#1F4080 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4080
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4080#FFFFFF#000000##FFFFFF
##1F40801.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4782
Deuteranopia (green-blind)
#003E7F
Tritanopia (blue-blind)
#004F5A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f4080;
/* rgb */ color: rgb(31, 64, 128);
/* oklch */ color: oklch(38.5% 0.115 262.0);
Tailwind
colors: {
  custom: {
    50: '#6974a5',
    500: '#1f4080',
    950: '#000000',
  },
}
SCSS
$custom: #1f4080;
$custom-light: #6974a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4080",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 128
  },
  "hsl": {
    "h": 219.588,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38465,
    "c": 0.11508,
    "h": 262
  },
  "luminance": 0.05517
}

Semantic roles & 50–950 ramp

primary
#1F4080
secondary
#B38F48
accent
#AE44E4
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1F4080

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

Preview Lab → · Contrast checker → · Palette generator →

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