#1F4BA9#1F4BA9

#1F4BA9 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.2% C 0.159 H 262.8°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#1F4BA9
RGBrgb(31, 75, 169)
HSLhsl(221, 69%, 39%)
HSVhsv(221, 82%, 66%)
CMYKcmyk(81.7%, 55.6%, 0%, 33.7%)
CIE-LABlab(34.37, 20.81, -54.67)
CIE-LCHlch(34.37, 58.49, 290.84°)
OKLaboklab(44.15% -0.02 -0.1578)
OKLCHoklch(44.15% 0.159 262.8)
XYZxyz(10.2400, 8.1868, 38.5689)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4BA9 #A97D1F
analogous
#1F90A9 #1F4BA9 #381FA9
triadic
#1F4BA9 #A91F4B #4BA91F
tetradic
#1F4BA9 #A91F90 #A97D1F #1FA938
square
#1F4BA9 #A91F90 #A97D1F #1FA938
split-complementary
#1F4BA9 #A9381F #90A91F
monochromatic
#0C1D42 #163475 #1F4BA9 #2D63D8 #608AE2

Accessibility & contrast

On white

7.96
#1F4BA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#1F4BA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4BA9
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4BA9#FFFFFF#000000##FFFFFF
##1F4BA91.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AC
Deuteranopia (green-blind)
#004BA7
Tritanopia (blue-blind)
#006272
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1f4ba9;
/* rgb */ color: rgb(31, 75, 169);
/* oklch */ color: oklch(44.2% 0.159 262.8);
Tailwind
colors: {
  custom: {
    50: '#727cc3',
    500: '#1f4ba9',
    950: '#000000',
  },
}
SCSS
$custom: #1f4ba9;
$custom-light: #727cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4ba9",
  "rgb": {
    "r": 31,
    "g": 75,
    "b": 169
  },
  "hsl": {
    "h": 220.87,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.44154,
    "c": 0.15905,
    "h": 262.8
  },
  "luminance": 0.08188
}

Semantic roles & 50–950 ramp

primary
#1F4BA9
secondary
#C7A55D
accent
#B43CEC
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#090913
muted
#7B7B82

Preview Lab

Preview with #1F4BA9

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

Preview Lab → · Contrast checker → · Palette generator →

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