#1F41B4#1F41B4

#1F41B4 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.1% C 0.186 H 265.8°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#1F41B4
RGBrgb(31, 65, 180)
HSLhsl(226, 71%, 41%)
HSVhsv(226, 83%, 71%)
CMYKcmyk(82.8%, 63.9%, 0%, 29.4%)
CIE-LABlab(32.63, 31.76, -64.06)
CIE-LCHlch(32.63, 71.50, 296.37°)
OKLaboklab(43.14% -0.0136 -0.1855)
OKLCHoklch(43.14% 0.186 265.8)
XYZxyz(10.6907, 7.3659, 44.0295)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F41B4 #B4921F
analogous
#1F8CB4 #1F41B4 #481FB4
triadic
#1F41B4 #B41F41 #41B41F
tetradic
#1F41B4 #B41F8C #B4921F #1FB448
square
#1F41B4 #B41F8C #B4921F #1FB448
split-complementary
#1F41B4 #B4481F #8CB41F
monochromatic
#0D1B4C #162E80 #1F41B4 #345ADC #6885E5

Accessibility & contrast

On white

8.49
#1F41B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#1F41B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F41B4
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F41B4#FFFFFF#000000##FFFFFF
##1F41B41.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0046B2
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f41b4;
/* rgb */ color: rgb(31, 65, 180);
/* oklch */ color: oklch(43.1% 0.186 265.8);
Tailwind
colors: {
  custom: {
    50: '#7675cb',
    500: '#1f41b4',
    950: '#000000',
  },
}
SCSS
$custom: #1f41b4;
$custom-light: #7675cb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f41b4",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 180
  },
  "hsl": {
    "h": 226.309,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43135,
    "c": 0.18599,
    "h": 265.8
  },
  "luminance": 0.07367
}

Semantic roles & 50–950 ramp

primary
#1F41B4
secondary
#CBB364
accent
#C53AED
background
#F7F7FC
surface
#EEEDF9
border
#C9C8D2
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #1F41B4

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

Preview Lab → · Contrast checker → · Palette generator →

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