#1F377E#1F377E

#1F377E is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.3% C 0.124 H 266.2°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#1F377E
RGBrgb(31, 55, 126)
HSLhsl(225, 61%, 31%)
HSVhsv(225, 75%, 49%)
CMYKcmyk(75.4%, 56.3%, 0%, 50.6%)
CIE-LABlab(25.35, 17.43, -42.98)
CIE-LCHlch(25.35, 46.38, 292.08°)
OKLaboklab(36.28% -0.0083 -0.1238)
OKLCHoklch(36.28% 0.124 266.2)
XYZxyz(5.6958, 4.5294, 20.3087)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F377E #7E661F
analogous
#1F667E #1F377E #361F7E
triadic
#1F377E #7E1F37 #377E1F
tetradic
#1F377E #7E1F66 #7E661F #1F7E36
square
#1F377E #7E1F66 #7E661F #1F7E36
split-complementary
#1F377E #7E361F #667E1F
monochromatic
#070C1C #13224D #1F377E #2B4CAF #4669D1

Accessibility & contrast

On white

11.02
#1F377E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F377E
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F377E#FFFFFF#000000##FFFFFF
##1F377E1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004180
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#004855
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f377e;
/* rgb */ color: rgb(31, 55, 126);
/* oklch */ color: oklch(36.3% 0.124 266.2);
Tailwind
colors: {
  custom: {
    50: '#696da4',
    500: '#1f377e',
    950: '#000000',
  },
}
SCSS
$custom: #1f377e;
$custom-light: #696da4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f377e",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 126
  },
  "hsl": {
    "h": 224.842,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36283,
    "c": 0.12406,
    "h": 266.2
  },
  "luminance": 0.0453
}

Semantic roles & 50–950 ramp

primary
#1F377E
secondary
#B19648
accent
#BB44E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1F377E

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

Preview Lab → · Contrast checker → · Palette generator →

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