#1F41A8#1F41A8

#1F41A8 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.0% C 0.170 H 265.4°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#1F41A8
RGBrgb(31, 65, 168)
HSLhsl(225, 69%, 39%)
HSVhsv(225, 82%, 66%)
CMYKcmyk(81.5%, 61.3%, 0%, 34.1%)
CIE-LABlab(31.57, 27.15, -58.62)
CIE-LCHlch(31.57, 64.61, 294.85°)
OKLaboklab(42.03% -0.0136 -0.1696)
OKLCHoklch(42.03% 0.17 265.4)
XYZxyz(9.5208, 6.8979, 37.8678)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F41A8 #A8861F
analogous
#1F86A8 #1F41A8 #411FA8
triadic
#1F41A8 #A81F41 #41A81F
tetradic
#1F41A8 #A81F86 #A8861F #1FA841
square
#1F41A8 #A81F86 #A8861F #1FA841
split-complementary
#1F41A8 #A8411F #86A81F
monochromatic
#0C1941 #152D74 #1F41A8 #2C57D8 #6080E2

Accessibility & contrast

On white

8.82
#1F41A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#1F41A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F41A8
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F41A8#FFFFFF#000000##FFFFFF
##1F41A81.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AB
Deuteranopia (green-blind)
#0044A6
Tritanopia (blue-blind)
#005C6E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f41a8;
/* rgb */ color: rgb(31, 65, 168);
/* oklch */ color: oklch(42.0% 0.170 265.4);
Tailwind
colors: {
  custom: {
    50: '#7375c3',
    500: '#1f41a8',
    950: '#000000',
  },
}
SCSS
$custom: #1f41a8;
$custom-light: #7375c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f41a8",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 168
  },
  "hsl": {
    "h": 225.109,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.4203,
    "c": 0.17012,
    "h": 265.4
  },
  "luminance": 0.06899
}

Semantic roles & 50–950 ramp

primary
#1F41A8
secondary
#C6AC5D
accent
#C03CEC
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090813
muted
#7B7B82

Preview Lab

Preview with #1F41A8

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

Preview Lab → · Contrast checker → · Palette generator →

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