#1F2A77#1F2A77

#1F2A77 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.9% C 0.131 H 271.0°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#1F2A77
RGBrgb(31, 42, 119)
HSLhsl(233, 59%, 29%)
HSVhsv(233, 74%, 47%)
CMYKcmyk(73.9%, 64.7%, 0%, 53.3%)
CIE-LABlab(21.13, 23.77, -45.41)
CIE-LCHlch(21.13, 51.26, 297.63°)
OKLaboklab(32.95% 0.0022 -0.1311)
OKLCHoklch(32.95% 0.131 271)
XYZxyz(4.7217, 3.2787, 17.8332)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A77 #776C1F
analogous
#1F5677 #1F2A77 #401F77
triadic
#1F2A77 #771F2A #2A771F
tetradic
#1F2A77 #771F56 #776C1F #1F7740
square
#1F2A77 #771F56 #776C1F #1F7740
split-complementary
#1F2A77 #77401F #56771F
monochromatic
#060918 #121946 #1F2A77 #2C3BA8 #4354CE

Accessibility & contrast

On white

12.68
#1F2A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1F2A77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A77
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A77#FFFFFF#000000##FFFFFF
##1F2A771.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003779
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#003E4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f2a77;
/* rgb */ color: rgb(31, 42, 119);
/* oklch */ color: oklch(32.9% 0.131 271.0);
Tailwind
colors: {
  custom: {
    50: '#68639f',
    500: '#1f2a77',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a77;
$custom-light: #68639f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a77",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 119
  },
  "hsl": {
    "h": 232.5,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32946,
    "c": 0.13114,
    "h": 271
  },
  "luminance": 0.03279
}

Semantic roles & 50–950 ramp

primary
#1F2A77
secondary
#AB9E47
accent
#CE46E2
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #1F2A77

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

Preview Lab → · Contrast checker → · Palette generator →

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