#1F4B96#1F4B96

#1F4B96 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 42.6% C 0.133 H 260.4°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#1F4B96
RGBrgb(31, 75, 150)
HSLhsl(218, 66%, 35%)
HSVhsv(218, 79%, 59%)
CMYKcmyk(79.3%, 50%, 0%, 41.2%)
CIE-LABlab(32.97, 13.24, -45.49)
CIE-LCHlch(32.97, 47.38, 286.23°)
OKLaboklab(42.65% -0.0222 -0.1308)
OKLCHoklch(42.65% 0.133 260.4)
XYZxyz(8.5842, 7.5245, 29.8482)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4B96 #966A1F
analogous
#1F8696 #1F4B96 #2E1F96
triadic
#1F4B96 #961F4B #4B961F
tetradic
#1F4B96 #961F86 #966A1F #1F962E
square
#1F4B96 #961F86 #966A1F #1F962E
split-complementary
#1F4B96 #962E1F #86961F
monochromatic
#0A1831 #153263 #1F4B96 #2964C9 #5486DC

Accessibility & contrast

On white

8.38
#1F4B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#1F4B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4B96
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4B96#FFFFFF#000000##FFFFFF
##1F4B961.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5399
Deuteranopia (green-blind)
#004895
Tritanopia (blue-blind)
#005D69
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f4b96;
/* rgb */ color: rgb(31, 75, 150);
/* oklch */ color: oklch(42.6% 0.133 260.4);
Tailwind
colors: {
  custom: {
    50: '#6e7cb5',
    500: '#1f4b96',
    950: '#000000',
  },
}
SCSS
$custom: #1f4b96;
$custom-light: #6e7cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4b96",
  "rgb": {
    "r": 31,
    "g": 75,
    "b": 150
  },
  "hsl": {
    "h": 217.815,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42648,
    "c": 0.13265,
    "h": 260.4
  },
  "luminance": 0.07525
}

Semantic roles & 50–950 ramp

primary
#1F4B96
secondary
#BF9752
accent
#AA3FE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4B96

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

Preview Lab → · Contrast checker → · Palette generator →

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