#1F3F79#1F3F79

#1F3F79 is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.7% C 0.106 H 261.2°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#1F3F79
RGBrgb(31, 63, 121)
HSLhsl(219, 59%, 30%)
HSVhsv(219, 74%, 47%)
CMYKcmyk(74.4%, 47.9%, 0%, 52.5%)
CIE-LABlab(27.37, 9.83, -36.57)
CIE-LCHlch(27.37, 37.87, 285.04°)
OKLaboklab(37.71% -0.0163 -0.1048)
OKLCHoklch(37.71% 0.106 261.2)
XYZxyz(5.7925, 5.2262, 18.7889)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3F79 #79591F
analogous
#1F6C79 #1F3F79 #2C1F79
triadic
#1F3F79 #791F3F #3F791F
tetradic
#1F3F79 #791F6C #79591F #1F792C
square
#1F3F79 #791F6C #79591F #1F792C
split-complementary
#1F3F79 #792C1F #6C791F
monochromatic
#060D18 #132648 #1F3F79 #2B58AA #4375CF

Accessibility & contrast

On white

10.27
#1F3F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#1F3F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3F79
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3F79#FFFFFF#000000##FFFFFF
##1F3F791.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21457B
Deuteranopia (green-blind)
#0E3D78
Tritanopia (blue-blind)
#004D56
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f3f79;
/* rgb */ color: rgb(31, 63, 121);
/* oklch */ color: oklch(37.7% 0.106 261.2);
Tailwind
colors: {
  custom: {
    50: '#6773a0',
    500: '#1f3f79',
    950: '#000000',
  },
}
SCSS
$custom: #1f3f79;
$custom-light: #6773a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3f79",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 121
  },
  "hsl": {
    "h": 218.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37706,
    "c": 0.10603,
    "h": 261.2
  },
  "luminance": 0.05227
}

Semantic roles & 50–950 ramp

primary
#1F3F79
secondary
#AC8847
accent
#AB45E2
background
#F6F6F9
surface
#EBECF2
border
#C6C7CC
text
#07080F
muted
#7A7B7E

Preview Lab

Preview with #1F3F79

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

Preview Lab → · Contrast checker → · Palette generator →

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