#1F4CA7#1F4CA7

#1F4CA7 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.2% C 0.155 H 262.3°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#1F4CA7
RGBrgb(31, 76, 167)
HSLhsl(220, 69%, 39%)
HSVhsv(220, 81%, 65%)
CMYKcmyk(81.4%, 54.5%, 0%, 34.5%)
CIE-LABlab(34.50, 19.34, -53.27)
CIE-LCHlch(34.50, 56.67, 289.96°)
OKLaboklab(44.2% -0.0208 -0.1536)
OKLCHoklch(44.2% 0.155 262.3)
XYZxyz(10.1221, 8.2490, 37.6105)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4CA7 #A77A1F
analogous
#1F90A7 #1F4CA7 #361FA7
triadic
#1F4CA7 #A71F4C #4CA71F
tetradic
#1F4CA7 #A71F90 #A77A1F #1FA736
square
#1F4CA7 #A71F90 #A77A1F #1FA736
split-complementary
#1F4CA7 #A7361F #90A71F
monochromatic
#0C1D40 #153573 #1F4CA7 #2B64D8 #5F8AE1

Accessibility & contrast

On white

7.92
#1F4CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#1F4CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4CA7
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4CA7#FFFFFF#000000##FFFFFF
##1F4CA71.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AA
Deuteranopia (green-blind)
#004BA5
Tritanopia (blue-blind)
#006272
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1f4ca7;
/* rgb */ color: rgb(31, 76, 167);
/* oklch */ color: oklch(44.2% 0.155 262.3);
Tailwind
colors: {
  custom: {
    50: '#727dc2',
    500: '#1f4ca7',
    950: '#000000',
  },
}
SCSS
$custom: #1f4ca7;
$custom-light: #727dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4ca7",
  "rgb": {
    "r": 31,
    "g": 76,
    "b": 167
  },
  "hsl": {
    "h": 220.147,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.44203,
    "c": 0.15506,
    "h": 262.3
  },
  "luminance": 0.0825
}

Semantic roles & 50–950 ramp

primary
#1F4CA7
secondary
#C6A35C
accent
#B23CEC
background
#F7F7FC
surface
#EDEEF8
border
#C8C9D1
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F4CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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