#1F4CA1#1F4CA1

#1F4CA1 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.7% C 0.147 H 261.6°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#1F4CA1
RGBrgb(31, 76, 161)
HSLhsl(219, 68%, 38%)
HSVhsv(219, 81%, 63%)
CMYKcmyk(80.7%, 52.8%, 0%, 36.9%)
CIE-LABlab(34.05, 16.96, -50.39)
CIE-LCHlch(34.05, 53.17, 288.60°)
OKLaboklab(43.72% -0.0215 -0.1452)
OKLCHoklch(43.72% 0.147 261.6)
XYZxyz(9.5802, 8.0323, 34.7568)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4CA1 #A1741F
analogous
#1F8DA1 #1F4CA1 #331FA1
triadic
#1F4CA1 #A11F4C #4CA11F
tetradic
#1F4CA1 #A11F8D #A1741F #1FA133
square
#1F4CA1 #A11F8D #A1741F #1FA133
split-complementary
#1F4CA1 #A1331F #8DA11F
monochromatic
#0B1C3A #15346E #1F4CA1 #2964D4 #5B89DF

Accessibility & contrast

On white

8.06
#1F4CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#1F4CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4CA1
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4CA1#FFFFFF#000000##FFFFFF
##1F4CA11.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1056A4
Deuteranopia (green-blind)
#004A9F
Tritanopia (blue-blind)
#00616F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1f4ca1;
/* rgb */ color: rgb(31, 76, 161);
/* oklch */ color: oklch(43.7% 0.147 261.6);
Tailwind
colors: {
  custom: {
    50: '#707dbd',
    500: '#1f4ca1',
    950: '#000000',
  },
}
SCSS
$custom: #1f4ca1;
$custom-light: #707dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4ca1",
  "rgb": {
    "r": 31,
    "g": 76,
    "b": 161
  },
  "hsl": {
    "h": 219.231,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.43722,
    "c": 0.14678,
    "h": 261.6
  },
  "luminance": 0.08033
}

Semantic roles & 50–950 ramp

primary
#1F4CA1
secondary
#C49E58
accent
#AF3DEB
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F4CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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