#1F4AAE#1F4AAE

#1F4AAE is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.4% C 0.167 H 263.5°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#1F4AAE
RGBrgb(31, 74, 174)
HSLhsl(222, 70%, 40%)
HSVhsv(222, 82%, 68%)
CMYKcmyk(82.2%, 57.5%, 0%, 31.8%)
CIE-LABlab(34.49, 23.45, -57.46)
CIE-LCHlch(34.49, 62.06, 292.20°)
OKLaboklab(44.37% -0.019 -0.166)
OKLCHoklch(44.37% 0.167 263.5)
XYZxyz(10.6511, 8.2436, 41.0660)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4AAE #AE831F
analogous
#1F91AE #1F4AAE #3B1FAE
triadic
#1F4AAE #AE1F4A #4AAE1F
tetradic
#1F4AAE #AE1F91 #AE831F #1FAE3B
square
#1F4AAE #AE1F91 #AE831F #1FAE3B
split-complementary
#1F4AAE #AE3B1F #91AE1F
monochromatic
#0C1E46 #16347A #1F4AAE #3063DA #648AE3

Accessibility & contrast

On white

7.93
#1F4AAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#1F4AAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4AAE
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4AAE#FFFFFF#000000##FFFFFF
##1F4AAE1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B1
Deuteranopia (green-blind)
#004BAC
Tritanopia (blue-blind)
#006374
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1f4aae;
/* rgb */ color: rgb(31, 74, 174);
/* oklch */ color: oklch(44.4% 0.167 263.5);
Tailwind
colors: {
  custom: {
    50: '#747bc7',
    500: '#1f4aae',
    950: '#000000',
  },
}
SCSS
$custom: #1f4aae;
$custom-light: #747bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4aae",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 174
  },
  "hsl": {
    "h": 221.958,
    "s": 69.756,
    "l": 40.196
  },
  "oklch": {
    "l": 0.44365,
    "c": 0.16708,
    "h": 263.5
  },
  "luminance": 0.08245
}

Semantic roles & 50–950 ramp

primary
#1F4AAE
secondary
#C8A960
accent
#B73BED
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #1F4AAE

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

Preview Lab → · Contrast checker → · Palette generator →

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