#1F2976#1F2976

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

Color values

HEX#1F2976
RGBrgb(31, 41, 118)
HSLhsl(233, 58%, 29%)
HSVhsv(233, 74%, 46%)
CMYKcmyk(73.7%, 65.3%, 0%, 53.7%)
CIE-LABlab(20.77, 24.08, -45.36)
CIE-LCHlch(20.77, 51.35, 297.96°)
OKLaboklab(32.65% 0.0031 -0.131)
OKLCHoklch(32.65% 0.131 271.3)
XYZxyz(4.6269, 3.1847, 17.5069)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2976 #766C1F
analogous
#1F5576 #1F2976 #411F76
triadic
#1F2976 #761F29 #29761F
tetradic
#1F2976 #761F55 #766C1F #1F7641
square
#1F2976 #761F55 #766C1F #1F7641
split-complementary
#1F2976 #76411F #55761F
monochromatic
#060818 #121846 #1F2976 #2C3AA6 #4252CD

Accessibility & contrast

On white

12.83
#1F2976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2976
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2976#FFFFFF#000000##FFFFFF
##1F29761.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003678
Deuteranopia (green-blind)
#002E75
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f2976;
/* rgb */ color: rgb(31, 41, 118);
/* oklch */ color: oklch(32.7% 0.131 271.3);
Tailwind
colors: {
  custom: {
    50: '#68629e',
    500: '#1f2976',
    950: '#000000',
  },
}
SCSS
$custom: #1f2976;
$custom-light: #68629e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2976",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 118
  },
  "hsl": {
    "h": 233.103,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32654,
    "c": 0.13101,
    "h": 271.3
  },
  "luminance": 0.03185
}

Semantic roles & 50–950 ramp

primary
#1F2976
secondary
#AA9E47
accent
#D046E2
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1F2976

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

Preview Lab → · Contrast checker → · Palette generator →

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