#1F3D80#1F3D80

#1F3D80 is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.8% C 0.119 H 263.6°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#1F3D80
RGBrgb(31, 61, 128)
HSLhsl(221, 61%, 31%)
HSVhsv(221, 76%, 50%)
CMYKcmyk(75.8%, 52.3%, 0%, 49.8%)
CIE-LABlab(27.26, 14.03, -41.14)
CIE-LCHlch(27.26, 43.47, 288.83°)
OKLaboklab(37.78% -0.0133 -0.1183)
OKLCHoklch(37.78% 0.119 263.6)
XYZxyz(6.1287, 5.1866, 21.0960)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3D80 #80621F
analogous
#1F6D80 #1F3D80 #311F80
triadic
#1F3D80 #801F3D #3D801F
tetradic
#1F3D80 #801F6D #80621F #1F8031
square
#1F3D80 #801F6D #80621F #1F8031
split-complementary
#1F3D80 #80311F #6D801F
monochromatic
#070E1D #13264F #1F3D80 #2B54B1 #4772D2

Accessibility & contrast

On white

10.31
#1F3D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#1F3D80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3D80
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3D80#FFFFFF#000000##FFFFFF
##1F3D801.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144582
Deuteranopia (green-blind)
#003C7F
Tritanopia (blue-blind)
#004D58
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f3d80;
/* rgb */ color: rgb(31, 61, 128);
/* oklch */ color: oklch(37.8% 0.119 263.6);
Tailwind
colors: {
  custom: {
    50: '#6972a5',
    500: '#1f3d80',
    950: '#000000',
  },
}
SCSS
$custom: #1f3d80;
$custom-light: #6972a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3d80",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 128
  },
  "hsl": {
    "h": 221.443,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3778,
    "c": 0.11902,
    "h": 263.6
  },
  "luminance": 0.05187
}

Semantic roles & 50–950 ramp

primary
#1F3D80
secondary
#B39248
accent
#B244E4
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1F3D80

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

Preview Lab → · Contrast checker → · Palette generator →

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