#1F4BA6#1F4BA6

#1F4BA6 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.9% C 0.155 H 262.5°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#1F4BA6
RGBrgb(31, 75, 166)
HSLhsl(220, 69%, 39%)
HSVhsv(220, 81%, 65%)
CMYKcmyk(81.3%, 54.8%, 0%, 34.9%)
CIE-LABlab(34.14, 19.62, -53.25)
CIE-LCHlch(34.14, 56.75, 290.23°)
OKLaboklab(43.91% -0.0202 -0.1536)
OKLCHoklch(43.91% 0.155 262.5)
XYZxyz(9.9616, 8.0754, 37.1027)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4BA6 #A67A1F
analogous
#1F8EA6 #1F4BA6 #361FA6
triadic
#1F4BA6 #A61F4B #4BA61F
tetradic
#1F4BA6 #A61F8E #A67A1F #1FA636
square
#1F4BA6 #A61F8E #A67A1F #1FA636
split-complementary
#1F4BA6 #A6361F #8EA61F
monochromatic
#0C1C3F #153472 #1F4BA6 #2B63D7 #5E89E1

Accessibility & contrast

On white

8.03
#1F4BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#1F4BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4BA6
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4BA6#FFFFFF#000000##FFFFFF
##1F4BA61.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057A9
Deuteranopia (green-blind)
#004AA4
Tritanopia (blue-blind)
#006171
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1f4ba6;
/* rgb */ color: rgb(31, 75, 166);
/* oklch */ color: oklch(43.9% 0.155 262.5);
Tailwind
colors: {
  custom: {
    50: '#727cc1',
    500: '#1f4ba6',
    950: '#000000',
  },
}
SCSS
$custom: #1f4ba6;
$custom-light: #727cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4ba6",
  "rgb": {
    "r": 31,
    "g": 75,
    "b": 166
  },
  "hsl": {
    "h": 220.444,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.43908,
    "c": 0.15494,
    "h": 262.5
  },
  "luminance": 0.08077
}

Semantic roles & 50–950 ramp

primary
#1F4BA6
secondary
#C5A35B
accent
#B23CEB
background
#F7F7FC
surface
#EDEEF8
border
#C8C9D1
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F4BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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