#1F2B77#1F2B77

#1F2B77 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.1% C 0.130 H 270.6°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#1F2B77
RGBrgb(31, 43, 119)
HSLhsl(232, 59%, 29%)
HSVhsv(232, 74%, 47%)
CMYKcmyk(73.9%, 63.9%, 0%, 53.3%)
CIE-LABlab(21.40, 23.08, -44.97)
CIE-LCHlch(21.40, 50.55, 297.16°)
OKLaboklab(33.15% 0.0014 -0.1298)
OKLCHoklch(33.15% 0.13 270.6)
XYZxyz(4.7576, 3.3505, 17.8452)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B77 #776B1F
analogous
#1F5777 #1F2B77 #3F1F77
triadic
#1F2B77 #771F2B #2B771F
tetradic
#1F2B77 #771F57 #776B1F #1F773F
square
#1F2B77 #771F57 #776B1F #1F773F
split-complementary
#1F2B77 #773F1F #57771F
monochromatic
#060918 #121946 #1F2B77 #2C3DA8 #4356CE

Accessibility & contrast

On white

12.57
#1F2B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1F2B77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B77
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B77#FFFFFF#000000##FFFFFF
##1F2B771.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.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: #1f2b77;
/* rgb */ color: rgb(31, 43, 119);
/* oklch */ color: oklch(33.1% 0.130 270.6);
Tailwind
colors: {
  custom: {
    50: '#68649f',
    500: '#1f2b77',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b77;
$custom-light: #68649f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b77",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 119
  },
  "hsl": {
    "h": 231.818,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33145,
    "c": 0.12983,
    "h": 270.6
  },
  "luminance": 0.03351
}

Semantic roles & 50–950 ramp

primary
#1F2B77
secondary
#AB9D47
accent
#CD46E2
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1F2B77

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

Preview Lab → · Contrast checker → · Palette generator →

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