#1F4BA4#1F4BA4

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

Color values

HEX#1F4BA4
RGBrgb(31, 75, 164)
HSLhsl(220, 68%, 38%)
HSVhsv(220, 81%, 64%)
CMYKcmyk(81.1%, 54.3%, 0%, 35.7%)
CIE-LABlab(33.99, 18.83, -52.29)
CIE-LCHlch(33.99, 55.58, 289.80°)
OKLaboklab(43.75% -0.0204 -0.1508)
OKLCHoklch(43.75% 0.152 262.3)
XYZxyz(9.7796, 8.0026, 36.1440)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4BA4 #A4781F
analogous
#1F8DA4 #1F4BA4 #351FA4
triadic
#1F4BA4 #A41F4B #4BA41F
tetradic
#1F4BA4 #A41F8D #A4781F #1FA435
square
#1F4BA4 #A41F8D #A4781F #1FA435
split-complementary
#1F4BA4 #A4351F #8DA41F
monochromatic
#0C1C3D #153371 #1F4BA4 #2A63D7 #5D88E0

Accessibility & contrast

On white

8.07
#1F4BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#1F4BA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4BA4
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4BA4#FFFFFF#000000##FFFFFF
##1F4BA41.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A7
Deuteranopia (green-blind)
#004AA2
Tritanopia (blue-blind)
#006170
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1f4ba4;
/* rgb */ color: rgb(31, 75, 164);
/* oklch */ color: oklch(43.7% 0.152 262.3);
Tailwind
colors: {
  custom: {
    50: '#717cc0',
    500: '#1f4ba4',
    950: '#000000',
  },
}
SCSS
$custom: #1f4ba4;
$custom-light: #717cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4ba4",
  "rgb": {
    "r": 31,
    "g": 75,
    "b": 164
  },
  "hsl": {
    "h": 220.15,
    "s": 68.205,
    "l": 38.235
  },
  "oklch": {
    "l": 0.43746,
    "c": 0.15219,
    "h": 262.3
  },
  "luminance": 0.08004
}

Semantic roles & 50–950 ramp

primary
#1F4BA4
secondary
#C5A15A
accent
#B13DEB
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F4BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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