#1F3980#1F3980

#1F3980 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 36.9% C 0.124 H 265.5°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#1F3980
RGBrgb(31, 57, 128)
HSLhsl(224, 61%, 31%)
HSVhsv(224, 76%, 50%)
CMYKcmyk(75.8%, 55.5%, 0%, 49.8%)
CIE-LABlab(26.09, 16.83, -43.04)
CIE-LCHlch(26.09, 46.22, 291.36°)
OKLaboklab(36.89% -0.0098 -0.1239)
OKLCHoklch(36.89% 0.124 265.5)
XYZxyz(5.9231, 4.7754, 21.0275)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3980 #80661F
analogous
#1F6980 #1F3980 #361F80
triadic
#1F3980 #801F39 #39801F
tetradic
#1F3980 #801F69 #80661F #1F8036
square
#1F3980 #801F69 #80661F #1F8036
split-complementary
#1F3980 #80361F #69801F
monochromatic
#070D1D #13234F #1F3980 #2B4FB1 #476CD2

Accessibility & contrast

On white

10.74
#1F3980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#1F3980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3980
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3980#FFFFFF#000000##FFFFFF
##1F39801.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034282
Deuteranopia (green-blind)
#00397F
Tritanopia (blue-blind)
#004A56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f3980;
/* rgb */ color: rgb(31, 57, 128);
/* oklch */ color: oklch(36.9% 0.124 265.5);
Tailwind
colors: {
  custom: {
    50: '#696ea5',
    500: '#1f3980',
    950: '#000000',
  },
}
SCSS
$custom: #1f3980;
$custom-light: #696ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3980",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 128
  },
  "hsl": {
    "h": 223.918,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36888,
    "c": 0.12432,
    "h": 265.5
  },
  "luminance": 0.04776
}

Semantic roles & 50–950 ramp

primary
#1F3980
secondary
#B39648
accent
#B944E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1F3980

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

Preview Lab → · Contrast checker → · Palette generator →

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