#1F2F77#1F2F77

#1F2F77 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.0% C 0.124 H 269.2°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#1F2F77
RGBrgb(31, 47, 119)
HSLhsl(229, 59%, 29%)
HSVhsv(229, 74%, 47%)
CMYKcmyk(73.9%, 60.5%, 0%, 53.3%)
CIE-LABlab(22.50, 20.28, -43.18)
CIE-LCHlch(22.50, 47.70, 295.15°)
OKLaboklab(33.96% -0.0018 -0.1245)
OKLCHoklch(33.96% 0.125 269.2)
XYZxyz(4.9102, 3.6557, 17.8960)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F77 #77671F
analogous
#1F5B77 #1F2F77 #3B1F77
triadic
#1F2F77 #771F2F #2F771F
tetradic
#1F2F77 #771F5B #77671F #1F773B
square
#1F2F77 #771F5B #77671F #1F773B
split-complementary
#1F2F77 #773B1F #5B771F
monochromatic
#060A18 #121C46 #1F2F77 #2C42A8 #435CCE

Accessibility & contrast

On white

12.13
#1F2F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1F2F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F77
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F77#FFFFFF#000000##FFFFFF
##1F2F771.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A79
Deuteranopia (green-blind)
#003276
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2f77;
/* rgb */ color: rgb(31, 47, 119);
/* oklch */ color: oklch(34.0% 0.124 269.2);
Tailwind
colors: {
  custom: {
    50: '#68679f',
    500: '#1f2f77',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f77;
$custom-light: #68679f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f77",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 119
  },
  "hsl": {
    "h": 229.091,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33964,
    "c": 0.1245,
    "h": 269.2
  },
  "luminance": 0.03656
}

Semantic roles & 50–950 ramp

primary
#1F2F77
secondary
#AB9847
accent
#C646E2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #1F2F77

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

Preview Lab → · Contrast checker → · Palette generator →

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