#1F4BA0#1F4BA0

#1F4BA0 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.4% C 0.147 H 261.8°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#1F4BA0
RGBrgb(31, 75, 160)
HSLhsl(220, 68%, 37%)
HSVhsv(220, 81%, 63%)
CMYKcmyk(80.6%, 53.1%, 0%, 37.3%)
CIE-LABlab(33.69, 17.24, -50.37)
CIE-LCHlch(33.69, 53.24, 288.89°)
OKLaboklab(43.43% -0.0209 -0.1452)
OKLCHoklch(43.43% 0.147 261.8)
XYZxyz(9.4240, 7.8604, 34.2714)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4BA0 #A0741F
analogous
#1F8BA0 #1F4BA0 #341FA0
triadic
#1F4BA0 #A01F4B #4BA01F
tetradic
#1F4BA0 #A01F8B #A0741F #1FA034
square
#1F4BA0 #A01F8B #A0741F #1FA034
split-complementary
#1F4BA0 #A0341F #8BA01F
monochromatic
#0B1B39 #15336D #1F4BA0 #2963D3 #5A88DF

Accessibility & contrast

On white

8.16
#1F4BA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#1F4BA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4BA0
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4BA0#FFFFFF#000000##FFFFFF
##1F4BA01.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D55A3
Deuteranopia (green-blind)
#004A9E
Tritanopia (blue-blind)
#00606E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f4ba0;
/* rgb */ color: rgb(31, 75, 160);
/* oklch */ color: oklch(43.4% 0.147 261.8);
Tailwind
colors: {
  custom: {
    50: '#707cbd',
    500: '#1f4ba0',
    950: '#000000',
  },
}
SCSS
$custom: #1f4ba0;
$custom-light: #707cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4ba0",
  "rgb": {
    "r": 31,
    "g": 75,
    "b": 160
  },
  "hsl": {
    "h": 219.535,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.43425,
    "c": 0.14665,
    "h": 261.8
  },
  "luminance": 0.07862
}

Semantic roles & 50–950 ramp

primary
#1F4BA0
secondary
#C39E58
accent
#AF3DEA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F4BA0

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

Preview Lab → · Contrast checker → · Palette generator →

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