#1F4380#1F4380

#1F4380 is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.2% C 0.111 H 260.3°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#1F4380
RGBrgb(31, 67, 128)
HSLhsl(218, 61%, 31%)
HSVhsv(218, 76%, 50%)
CMYKcmyk(75.8%, 47.7%, 0%, 49.8%)
CIE-LABlab(29.07, 9.88, -38.24)
CIE-LCHlch(29.07, 39.49, 284.48°)
OKLaboklab(39.16% -0.0188 -0.1096)
OKLCHoklch(39.16% 0.111 260.3)
XYZxyz(6.4671, 5.8634, 21.2088)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4380 #805C1F
analogous
#1F7380 #1F4380 #2B1F80
triadic
#1F4380 #801F43 #43801F
tetradic
#1F4380 #801F73 #805C1F #1F802B
square
#1F4380 #801F73 #805C1F #1F802B
split-complementary
#1F4380 #802B1F #73801F
monochromatic
#070F1D #13294F #1F4380 #2B5DB1 #477BD2

Accessibility & contrast

On white

9.66
#1F4380 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#1F4380 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4380
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4380#FFFFFF#000000##FFFFFF
##1F43801.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234982
Deuteranopia (green-blind)
#0D407F
Tritanopia (blue-blind)
#00515B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f4380;
/* rgb */ color: rgb(31, 67, 128);
/* oklch */ color: oklch(39.2% 0.111 260.3);
Tailwind
colors: {
  custom: {
    50: '#6976a5',
    500: '#1f4380',
    950: '#000000',
  },
}
SCSS
$custom: #1f4380;
$custom-light: #6976a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4380",
  "rgb": {
    "r": 31,
    "g": 67,
    "b": 128
  },
  "hsl": {
    "h": 217.732,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.39162,
    "c": 0.1112,
    "h": 260.3
  },
  "luminance": 0.05864
}

Semantic roles & 50–950 ramp

primary
#1F4380
secondary
#B38B48
accent
#A944E4
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1F4380

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

Preview Lab → · Contrast checker → · Palette generator →

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