#1F46B2#1F46B2

#1F46B2 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.9% C 0.177 H 264.7°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#1F46B2
RGBrgb(31, 70, 178)
HSLhsl(224, 70%, 41%)
HSVhsv(224, 83%, 70%)
CMYKcmyk(82.6%, 60.7%, 0%, 30.2%)
CIE-LABlab(33.74, 27.69, -61.05)
CIE-LCHlch(33.74, 67.03, 294.40°)
OKLaboklab(43.91% -0.0163 -0.1766)
OKLCHoklch(43.91% 0.177 264.7)
XYZxyz(10.7883, 7.8847, 43.0641)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F46B2 #B28B1F
analogous
#1F8FB2 #1F46B2 #421FB2
triadic
#1F46B2 #B21F46 #46B21F
tetradic
#1F46B2 #B21F8F #B28B1F #1FB242
square
#1F46B2 #B21F8F #B28B1F #1FB242
split-complementary
#1F46B2 #B2421F #8FB21F
monochromatic
#0D1D4A #16327E #1F46B2 #3360DB #6788E5

Accessibility & contrast

On white

8.15
#1F46B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#1F46B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F46B2
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F46B2#FFFFFF#000000##FFFFFF
##1F46B21.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#0049B0
Tritanopia (blue-blind)
#006275
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f46b2;
/* rgb */ color: rgb(31, 70, 178);
/* oklch */ color: oklch(43.9% 0.177 264.7);
Tailwind
colors: {
  custom: {
    50: '#7579ca',
    500: '#1f46b2',
    950: '#000000',
  },
}
SCSS
$custom: #1f46b2;
$custom-light: #7579ca;
$custom-dark: #000000;
JSON
{
  "hex": "#1f46b2",
  "rgb": {
    "r": 31,
    "g": 70,
    "b": 178
  },
  "hsl": {
    "h": 224.082,
    "s": 70.335,
    "l": 40.98
  },
  "oklch": {
    "l": 0.4391,
    "c": 0.17736,
    "h": 264.7
  },
  "luminance": 0.07886
}

Semantic roles & 50–950 ramp

primary
#1F46B2
secondary
#CAAF63
accent
#BE3BED
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #1F46B2

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

Preview Lab → · Contrast checker → · Palette generator →

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