#1F4BAD#1F4BAD

#1F4BAD is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.5% C 0.164 H 263.1°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#1F4BAD
RGBrgb(31, 75, 173)
HSLhsl(221, 70%, 40%)
HSVhsv(221, 82%, 68%)
CMYKcmyk(82.1%, 56.6%, 0%, 32.2%)
CIE-LABlab(34.68, 22.39, -56.55)
CIE-LCHlch(34.68, 60.82, 291.60°)
OKLaboklab(44.49% -0.0197 -0.1633)
OKLCHoklch(44.49% 0.164 263.1)
XYZxyz(10.6213, 8.3393, 40.5769)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4BAD #AD811F
analogous
#1F92AD #1F4BAD #3A1FAD
triadic
#1F4BAD #AD1F4B #4BAD1F
tetradic
#1F4BAD #AD1F92 #AD811F #1FAD3A
square
#1F4BAD #AD1F92 #AD811F #1FAD3A
split-complementary
#1F4BAD #AD3A1F #92AD1F
monochromatic
#0C1E45 #163579 #1F4BAD #2F64DA #638BE3

Accessibility & contrast

On white

7.87
#1F4BAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#1F4BAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4BAD
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4BAD#FFFFFF#000000##FFFFFF
##1F4BAD1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B0
Deuteranopia (green-blind)
#004BAB
Tritanopia (blue-blind)
#006374
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f4bad;
/* rgb */ color: rgb(31, 75, 173);
/* oklch */ color: oklch(44.5% 0.164 263.1);
Tailwind
colors: {
  custom: {
    50: '#747cc6',
    500: '#1f4bad',
    950: '#000000',
  },
}
SCSS
$custom: #1f4bad;
$custom-light: #747cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4bad",
  "rgb": {
    "r": 31,
    "g": 75,
    "b": 173
  },
  "hsl": {
    "h": 221.408,
    "s": 69.608,
    "l": 40
  },
  "oklch": {
    "l": 0.44487,
    "c": 0.16449,
    "h": 263.1
  },
  "luminance": 0.08341
}

Semantic roles & 50–950 ramp

primary
#1F4BAD
secondary
#C8A860
accent
#B63BEC
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #1F4BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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