#1F47B2#1F47B2

#1F47B2 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.1% C 0.176 H 264.5°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#1F47B2
RGBrgb(31, 71, 178)
HSLhsl(224, 70%, 41%)
HSVhsv(224, 83%, 70%)
CMYKcmyk(82.6%, 60.1%, 0%, 30.2%)
CIE-LABlab(34.01, 27.02, -60.62)
CIE-LCHlch(34.01, 66.36, 294.02°)
OKLaboklab(44.11% -0.0169 -0.1753)
OKLCHoklch(44.11% 0.176 264.5)
XYZxyz(10.8513, 8.0108, 43.0852)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F47B2 #B28A1F
analogous
#1F90B2 #1F47B2 #401FB2
triadic
#1F47B2 #B21F47 #47B21F
tetradic
#1F47B2 #B21F90 #B28A1F #1FB240
square
#1F47B2 #B21F90 #B28A1F #1FB240
split-complementary
#1F47B2 #B2401F #90B21F
monochromatic
#0D1D4A #16327E #1F47B2 #3361DB #6789E5

Accessibility & contrast

On white

8.07
#1F47B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#1F47B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F47B2
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F47B2#FFFFFF#000000##FFFFFF
##1F47B21.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#0049B0
Tritanopia (blue-blind)
#006275
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1f47b2;
/* rgb */ color: rgb(31, 71, 178);
/* oklch */ color: oklch(44.1% 0.176 264.5);
Tailwind
colors: {
  custom: {
    50: '#7579ca',
    500: '#1f47b2',
    950: '#000000',
  },
}
SCSS
$custom: #1f47b2;
$custom-light: #7579ca;
$custom-dark: #000000;
JSON
{
  "hex": "#1f47b2",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 178
  },
  "hsl": {
    "h": 223.673,
    "s": 70.335,
    "l": 40.98
  },
  "oklch": {
    "l": 0.44107,
    "c": 0.17614,
    "h": 264.5
  },
  "luminance": 0.08012
}

Semantic roles & 50–950 ramp

primary
#1F47B2
secondary
#CAAE63
accent
#BD3BED
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #1F47B2

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

Preview Lab → · Contrast checker → · Palette generator →

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