#1F3E76#1F3E76

#1F3E76 is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.2% C 0.103 H 261.1°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#1F3E76
RGBrgb(31, 62, 118)
HSLhsl(219, 58%, 29%)
HSVhsv(219, 74%, 46%)
CMYKcmyk(73.7%, 47.5%, 0%, 53.7%)
CIE-LABlab(26.86, 9.31, -35.50)
CIE-LCHlch(26.86, 36.70, 284.70°)
OKLaboklab(37.25% -0.0158 -0.1016)
OKLCHoklch(37.25% 0.103 261.1)
XYZxyz(5.5565, 5.0440, 17.8168)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3E76 #76571F
analogous
#1F6A76 #1F3E76 #2C1F76
triadic
#1F3E76 #761F3E #3E761F
tetradic
#1F3E76 #761F6A #76571F #1F762C
square
#1F3E76 #761F6A #76571F #1F762C
split-complementary
#1F3E76 #762C1F #6A761F
monochromatic
#060D18 #122546 #1F3E76 #2C57A6 #4274CD

Accessibility & contrast

On white

10.45
#1F3E76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#1F3E76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3E76
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3E76#FFFFFF#000000##FFFFFF
##1F3E761.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224478
Deuteranopia (green-blind)
#103C75
Tritanopia (blue-blind)
#004B54
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f3e76;
/* rgb */ color: rgb(31, 62, 118);
/* oklch */ color: oklch(37.2% 0.103 261.1);
Tailwind
colors: {
  custom: {
    50: '#67729e',
    500: '#1f3e76',
    950: '#000000',
  },
}
SCSS
$custom: #1f3e76;
$custom-light: #67729e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3e76",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 118
  },
  "hsl": {
    "h": 218.621,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37248,
    "c": 0.10287,
    "h": 261.1
  },
  "luminance": 0.05045
}

Semantic roles & 50–950 ramp

primary
#1F3E76
secondary
#AA8747
accent
#AA46E2
background
#F6F6F9
surface
#EBECF2
border
#C6C7CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #1F3E76

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

Preview Lab → · Contrast checker → · Palette generator →

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