#1F2776#1F2776

#1F2776 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.134 H 272.0°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#1F2776
RGBrgb(31, 39, 118)
HSLhsl(234, 58%, 29%)
HSVhsv(234, 74%, 46%)
CMYKcmyk(73.7%, 66.9%, 0%, 53.7%)
CIE-LABlab(20.24, 25.46, -46.22)
CIE-LCHlch(20.24, 52.77, 298.85°)
OKLaboklab(32.27% 0.0046 -0.1335)
OKLCHoklch(32.27% 0.134 272)
XYZxyz(4.5595, 3.0499, 17.4844)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2776 #766E1F
analogous
#1F5376 #1F2776 #431F76
triadic
#1F2776 #761F27 #27761F
tetradic
#1F2776 #761F53 #766E1F #1F7643
square
#1F2776 #761F53 #766E1F #1F7643
split-complementary
#1F2776 #76431F #53761F
monochromatic
#060818 #121746 #1F2776 #2C37A6 #424FCD

Accessibility & contrast

On white

13.04
#1F2776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1F2776 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2776
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2776#FFFFFF#000000##FFFFFF
##1F27761.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#003C4A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f2776;
/* rgb */ color: rgb(31, 39, 118);
/* oklch */ color: oklch(32.3% 0.134 272.0);
Tailwind
colors: {
  custom: {
    50: '#68619e',
    500: '#1f2776',
    950: '#000000',
  },
}
SCSS
$custom: #1f2776;
$custom-light: #68619e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2776",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 118
  },
  "hsl": {
    "h": 234.483,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32267,
    "c": 0.13359,
    "h": 272
  },
  "luminance": 0.0305
}

Semantic roles & 50–950 ramp

primary
#1F2776
secondary
#AAA147
accent
#D346E2
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1F2776

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

Preview Lab → · Contrast checker → · Palette generator →

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