#1F3D71#1F3D71

#1F3D71 is a dark, moderate blue. Relative luminance 0.048; OKLCH L 36.6% C 0.097 H 260.6°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#1F3D71
RGBrgb(31, 61, 113)
HSLhsl(218, 57%, 28%)
HSVhsv(218, 73%, 44%)
CMYKcmyk(72.6%, 46%, 0%, 55.7%)
CIE-LABlab(26.22, 8.01, -33.35)
CIE-LCHlch(26.22, 34.30, 283.50°)
OKLaboklab(36.65% -0.0158 -0.0954)
OKLCHoklch(36.65% 0.097 260.6)
XYZxyz(5.2134, 4.8205, 16.2753)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3D71 #71531F
analogous
#1F6671 #1F3D71 #2A1F71
triadic
#1F3D71 #711F3D #3D711F
tetradic
#1F3D71 #711F66 #71531F #1F712A
square
#1F3D71 #711F66 #71531F #1F712A
split-complementary
#1F3D71 #712A1F #66711F
monochromatic
#070D18 #122341 #1F3D71 #2C57A1 #4073CB

Accessibility & contrast

On white

10.69
#1F3D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F3D71
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3D71#FFFFFF#000000##FFFFFF
##1F3D711.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244273
Deuteranopia (green-blind)
#153B70
Tritanopia (blue-blind)
#004951
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f3d71;
/* rgb */ color: rgb(31, 61, 113);
/* oklch */ color: oklch(36.6% 0.097 260.6);
Tailwind
colors: {
  custom: {
    50: '#66729a',
    500: '#1f3d71',
    950: '#000000',
  },
}
SCSS
$custom: #1f3d71;
$custom-light: #66729a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3d71",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 113
  },
  "hsl": {
    "h": 218.049,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36646,
    "c": 0.09666,
    "h": 260.6
  },
  "luminance": 0.04821
}

Semantic roles & 50–950 ramp

primary
#1F3D71
secondary
#A58347
accent
#A848E0
background
#F6F6F9
surface
#EBECF2
border
#C6C7CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #1F3D71

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

Preview Lab → · Contrast checker → · Palette generator →

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