#1F377F#1F377F

#1F377F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.4% C 0.126 H 266.3°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#1F377F
RGBrgb(31, 55, 127)
HSLhsl(225, 61%, 31%)
HSVhsv(225, 76%, 50%)
CMYKcmyk(75.6%, 56.7%, 0%, 50.2%)
CIE-LABlab(25.43, 17.83, -43.48)
CIE-LCHlch(25.43, 46.99, 292.30°)
OKLaboklab(36.37% -0.0082 -0.1252)
OKLCHoklch(36.37% 0.126 266.3)
XYZxyz(5.7607, 4.5554, 20.6502)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F377F #7F671F
analogous
#1F677F #1F377F #371F7F
triadic
#1F377F #7F1F37 #377F1F
tetradic
#1F377F #7F1F67 #7F671F #1F7F37
square
#1F377F #7F1F67 #7F671F #1F7F37
split-complementary
#1F377F #7F371F #677F1F
monochromatic
#070C1D #13224E #1F377F #2B4CB0 #4669D2

Accessibility & contrast

On white

10.99
#1F377F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#1F377F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F377F
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F377F#FFFFFF#000000##FFFFFF
##1F377F1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004182
Deuteranopia (green-blind)
#00387E
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f377f;
/* rgb */ color: rgb(31, 55, 127);
/* oklch */ color: oklch(36.4% 0.126 266.3);
Tailwind
colors: {
  custom: {
    50: '#696da5',
    500: '#1f377f',
    950: '#000000',
  },
}
SCSS
$custom: #1f377f;
$custom-light: #696da5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f377f",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 127
  },
  "hsl": {
    "h": 225,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36367,
    "c": 0.12552,
    "h": 266.3
  },
  "luminance": 0.04556
}

Semantic roles & 50–950 ramp

primary
#1F377F
secondary
#B29748
accent
#BC44E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1F377F

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

Preview Lab → · Contrast checker → · Palette generator →

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