#1F41AE#1F41AE

#1F41AE is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.6% C 0.178 H 265.6°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#1F41AE
RGBrgb(31, 65, 174)
HSLhsl(226, 70%, 40%)
HSVhsv(226, 82%, 68%)
CMYKcmyk(82.2%, 62.6%, 0%, 31.8%)
CIE-LABlab(32.09, 29.47, -61.36)
CIE-LCHlch(32.09, 68.07, 295.65°)
OKLaboklab(42.58% -0.0136 -0.1776)
OKLCHoklch(42.58% 0.178 265.6)
XYZxyz(10.0927, 7.1267, 40.8798)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F41AE #AE8C1F
analogous
#1F89AE #1F41AE #441FAE
triadic
#1F41AE #AE1F41 #41AE1F
tetradic
#1F41AE #AE1F89 #AE8C1F #1FAE44
square
#1F41AE #AE1F89 #AE8C1F #1FAE44
split-complementary
#1F41AE #AE441F #89AE1F
monochromatic
#0C1A46 #162E7A #1F41AE #3059DA #6482E3

Accessibility & contrast

On white

8.66
#1F41AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#1F41AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F41AE
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F41AE#FFFFFF#000000##FFFFFF
##1F41AE1.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#0045AC
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f41ae;
/* rgb */ color: rgb(31, 65, 174);
/* oklch */ color: oklch(42.6% 0.178 265.6);
Tailwind
colors: {
  custom: {
    50: '#7575c7',
    500: '#1f41ae',
    950: '#000000',
  },
}
SCSS
$custom: #1f41ae;
$custom-light: #7575c7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f41ae",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 174
  },
  "hsl": {
    "h": 225.734,
    "s": 69.756,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42578,
    "c": 0.17811,
    "h": 265.6
  },
  "luminance": 0.07128
}

Semantic roles & 50–950 ramp

primary
#1F41AE
secondary
#C8B060
accent
#C23BED
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #1F41AE

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

Preview Lab → · Contrast checker → · Palette generator →

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