#1F4B91#1F4B91

#1F4B91 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.3% C 0.126 H 259.5°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#1F4B91
RGBrgb(31, 75, 145)
HSLhsl(217, 65%, 35%)
HSVhsv(217, 79%, 57%)
CMYKcmyk(78.6%, 48.3%, 0%, 43.1%)
CIE-LABlab(32.63, 11.24, -43.00)
CIE-LCHlch(32.63, 44.44, 284.65°)
OKLaboklab(42.27% -0.023 -0.1234)
OKLCHoklch(42.27% 0.126 259.5)
XYZxyz(8.1901, 7.3668, 27.7729)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4B91 #91651F
analogous
#1F8491 #1F4B91 #2C1F91
triadic
#1F4B91 #911F4B #4B911F
tetradic
#1F4B91 #911F84 #91651F #1F912C
square
#1F4B91 #911F84 #91651F #1F912C
split-complementary
#1F4B91 #912C1F #84911F
monochromatic
#09172C #14315F #1F4B91 #2A65C3 #5186DA

Accessibility & contrast

On white

8.49
#1F4B91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#1F4B91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4B91
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4B91#FFFFFF#000000##FFFFFF
##1F4B911.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255294
Deuteranopia (green-blind)
#034890
Tritanopia (blue-blind)
#005C67
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f4b91;
/* rgb */ color: rgb(31, 75, 145);
/* oklch */ color: oklch(42.3% 0.126 259.5);
Tailwind
colors: {
  custom: {
    50: '#6d7cb2',
    500: '#1f4b91',
    950: '#000000',
  },
}
SCSS
$custom: #1f4b91;
$custom-light: #6d7cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4b91",
  "rgb": {
    "r": 31,
    "g": 75,
    "b": 145
  },
  "hsl": {
    "h": 216.842,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.42273,
    "c": 0.12557,
    "h": 259.5
  },
  "luminance": 0.07368
}

Semantic roles & 50–950 ramp

primary
#1F4B91
secondary
#BD924F
accent
#A740E8
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4B91

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

Preview Lab → · Contrast checker → · Palette generator →

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