#1F47AE#1F47AE

#1F47AE is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.8% C 0.171 H 264.3°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#1F47AE
RGBrgb(31, 71, 174)
HSLhsl(223, 70%, 40%)
HSVhsv(223, 82%, 68%)
CMYKcmyk(82.2%, 59.2%, 0%, 31.8%)
CIE-LABlab(33.67, 25.46, -58.78)
CIE-LCHlch(33.67, 64.06, 293.42°)
OKLaboklab(43.76% -0.0171 -0.1699)
OKLCHoklch(43.76% 0.171 264.3)
XYZxyz(10.4556, 7.8525, 41.0008)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F47AE #AE861F
analogous
#1F8EAE #1F47AE #3F1FAE
triadic
#1F47AE #AE1F47 #47AE1F
tetradic
#1F47AE #AE1F8E #AE861F #1FAE3F
square
#1F47AE #AE1F8E #AE861F #1FAE3F
split-complementary
#1F47AE #AE3F1F #8EAE1F
monochromatic
#0C1D46 #16327A #1F47AE #3060DA #6488E3

Accessibility & contrast

On white

8.17
#1F47AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#1F47AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F47AE
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F47AE#FFFFFF#000000##FFFFFF
##1F47AE1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B1
Deuteranopia (green-blind)
#0049AC
Tritanopia (blue-blind)
#006173
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f47ae;
/* rgb */ color: rgb(31, 71, 174);
/* oklch */ color: oklch(43.8% 0.171 264.3);
Tailwind
colors: {
  custom: {
    50: '#7479c7',
    500: '#1f47ae',
    950: '#000000',
  },
}
SCSS
$custom: #1f47ae;
$custom-light: #7479c7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f47ae",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 174
  },
  "hsl": {
    "h": 223.217,
    "s": 69.756,
    "l": 40.196
  },
  "oklch": {
    "l": 0.43756,
    "c": 0.1708,
    "h": 264.3
  },
  "luminance": 0.07854
}

Semantic roles & 50–950 ramp

primary
#1F47AE
secondary
#C8AB60
accent
#BB3BED
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #1F47AE

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

Preview Lab → · Contrast checker → · Palette generator →

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