#1F2977#1F2977

#1F2977 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.132 H 271.3°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#1F2977
RGBrgb(31, 41, 119)
HSLhsl(233, 59%, 29%)
HSVhsv(233, 74%, 47%)
CMYKcmyk(73.9%, 65.5%, 0%, 53.3%)
CIE-LABlab(20.86, 24.47, -45.85)
CIE-LCHlch(20.86, 51.97, 298.09°)
OKLaboklab(32.75% 0.003 -0.1324)
OKLCHoklch(32.75% 0.132 271.3)
XYZxyz(4.6867, 3.2086, 17.8215)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2977 #776D1F
analogous
#1F5577 #1F2977 #411F77
triadic
#1F2977 #771F29 #29771F
tetradic
#1F2977 #771F55 #776D1F #1F7741
square
#1F2977 #771F55 #776D1F #1F7741
split-complementary
#1F2977 #77411F #55771F
monochromatic
#060818 #121846 #1F2977 #2C3AA8 #4352CE

Accessibility & contrast

On white

12.79
#1F2977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1F2977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2977
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2977#FFFFFF#000000##FFFFFF
##1F29771.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367A
Deuteranopia (green-blind)
#002E76
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f2977;
/* rgb */ color: rgb(31, 41, 119);
/* oklch */ color: oklch(32.8% 0.132 271.3);
Tailwind
colors: {
  custom: {
    50: '#68629f',
    500: '#1f2977',
    950: '#000000',
  },
}
SCSS
$custom: #1f2977;
$custom-light: #68629f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2977",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 119
  },
  "hsl": {
    "h": 233.182,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3275,
    "c": 0.13243,
    "h": 271.3
  },
  "luminance": 0.03209
}

Semantic roles & 50–950 ramp

primary
#1F2977
secondary
#AB9F47
accent
#D046E2
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #1F2977

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

Preview Lab → · Contrast checker → · Palette generator →

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