#1F3F77#1F3F77

#1F3F77 is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.6% C 0.103 H 260.7°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#1F3F77
RGBrgb(31, 63, 119)
HSLhsl(218, 59%, 29%)
HSVhsv(218, 74%, 47%)
CMYKcmyk(73.9%, 47.1%, 0%, 53.3%)
CIE-LABlab(27.23, 9.02, -35.53)
CIE-LCHlch(27.23, 36.65, 284.25°)
OKLaboklab(37.56% -0.0166 -0.1017)
OKLCHoklch(37.56% 0.103 260.7)
XYZxyz(5.6712, 5.1776, 18.1497)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3F77 #77571F
analogous
#1F6B77 #1F3F77 #2B1F77
triadic
#1F3F77 #771F3F #3F771F
tetradic
#1F3F77 #771F6B #77571F #1F772B
square
#1F3F77 #771F6B #77571F #1F772B
split-complementary
#1F3F77 #772B1F #6B771F
monochromatic
#060D18 #122546 #1F3F77 #2C59A8 #4375CE

Accessibility & contrast

On white

10.32
#1F3F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F3F77
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3F77#FFFFFF#000000##FFFFFF
##1F3F771.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234579
Deuteranopia (green-blind)
#113D76
Tritanopia (blue-blind)
#004C55
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f3f77;
/* rgb */ color: rgb(31, 63, 119);
/* oklch */ color: oklch(37.6% 0.103 260.7);
Tailwind
colors: {
  custom: {
    50: '#67739f',
    500: '#1f3f77',
    950: '#000000',
  },
}
SCSS
$custom: #1f3f77;
$custom-light: #67739f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3f77",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 119
  },
  "hsl": {
    "h": 218.182,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37559,
    "c": 0.10306,
    "h": 260.7
  },
  "luminance": 0.05178
}

Semantic roles & 50–950 ramp

primary
#1F3F77
secondary
#AB8647
accent
#A946E2
background
#F6F6F9
surface
#EBECF2
border
#C6C7CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #1F3F77

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

Preview Lab → · Contrast checker → · Palette generator →

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