#1F4BA1#1F4BA1

#1F4BA1 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.5% C 0.148 H 261.9°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#1F4BA1
RGBrgb(31, 75, 161)
HSLhsl(220, 68%, 38%)
HSVhsv(220, 81%, 63%)
CMYKcmyk(80.7%, 53.4%, 0%, 36.9%)
CIE-LABlab(33.76, 17.64, -50.86)
CIE-LCHlch(33.76, 53.83, 289.13°)
OKLaboklab(43.51% -0.0207 -0.1466)
OKLCHoklch(43.51% 0.148 261.9)
XYZxyz(9.5119, 7.8955, 34.7340)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4BA1 #A1751F
analogous
#1F8CA1 #1F4BA1 #341FA1
triadic
#1F4BA1 #A11F4B #4BA11F
tetradic
#1F4BA1 #A11F8C #A1751F #1FA134
square
#1F4BA1 #A11F8C #A1751F #1FA134
split-complementary
#1F4BA1 #A1341F #8CA11F
monochromatic
#0B1B3A #15336E #1F4BA1 #2963D4 #5B88DF

Accessibility & contrast

On white

8.14
#1F4BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#1F4BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4BA1
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4BA1#FFFFFF#000000##FFFFFF
##1F4BA11.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f4ba1;
/* rgb */ color: rgb(31, 75, 161);
/* oklch */ color: oklch(43.5% 0.148 261.9);
Tailwind
colors: {
  custom: {
    50: '#707cbd',
    500: '#1f4ba1',
    950: '#000000',
  },
}
SCSS
$custom: #1f4ba1;
$custom-light: #707cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4ba1",
  "rgb": {
    "r": 31,
    "g": 75,
    "b": 161
  },
  "hsl": {
    "h": 219.692,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.43505,
    "c": 0.14804,
    "h": 261.9
  },
  "luminance": 0.07897
}

Semantic roles & 50–950 ramp

primary
#1F4BA1
secondary
#C49F58
accent
#B03DEB
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F4BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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