#1F4BAE#1F4BAE

#1F4BAE is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.6% C 0.166 H 263.2°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#1F4BAE
RGBrgb(31, 75, 174)
HSLhsl(222, 70%, 40%)
HSVhsv(222, 82%, 68%)
CMYKcmyk(82.2%, 56.9%, 0%, 31.8%)
CIE-LABlab(34.76, 22.78, -57.01)
CIE-LCHlch(34.76, 61.39, 291.78°)
OKLaboklab(44.57% -0.0196 -0.1647)
OKLCHoklch(44.57% 0.166 263.2)
XYZxyz(10.7184, 8.3782, 41.0884)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4BAE #AE821F
analogous
#1F93AE #1F4BAE #3A1FAE
triadic
#1F4BAE #AE1F4B #4BAE1F
tetradic
#1F4BAE #AE1F93 #AE821F #1FAE3A
square
#1F4BAE #AE1F93 #AE821F #1FAE3A
split-complementary
#1F4BAE #AE3A1F #93AE1F
monochromatic
#0C1E46 #16357A #1F4BAE #3064DA #648BE3

Accessibility & contrast

On white

7.85
#1F4BAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#1F4BAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4BAE
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4BAE#FFFFFF#000000##FFFFFF
##1F4BAE1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B1
Deuteranopia (green-blind)
#004BAC
Tritanopia (blue-blind)
#006475
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f4bae;
/* rgb */ color: rgb(31, 75, 174);
/* oklch */ color: oklch(44.6% 0.166 263.2);
Tailwind
colors: {
  custom: {
    50: '#747cc7',
    500: '#1f4bae',
    950: '#000000',
  },
}
SCSS
$custom: #1f4bae;
$custom-light: #747cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4bae",
  "rgb": {
    "r": 31,
    "g": 75,
    "b": 174
  },
  "hsl": {
    "h": 221.538,
    "s": 69.756,
    "l": 40.196
  },
  "oklch": {
    "l": 0.44571,
    "c": 0.16584,
    "h": 263.2
  },
  "luminance": 0.08379
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F4BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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