#1F41AF#1F41AF

#1F41AF is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.7% C 0.179 H 265.7°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#1F41AF
RGBrgb(31, 65, 175)
HSLhsl(226, 70%, 40%)
HSVhsv(226, 82%, 69%)
CMYKcmyk(82.3%, 62.9%, 0%, 31.4%)
CIE-LABlab(32.18, 29.85, -61.81)
CIE-LCHlch(32.18, 68.65, 295.78°)
OKLaboklab(42.67% -0.0136 -0.1789)
OKLCHoklch(42.67% 0.179 265.7)
XYZxyz(10.1905, 7.1658, 41.3952)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F41AF #AF8D1F
analogous
#1F89AF #1F41AF #451FAF
triadic
#1F41AF #AF1F41 #41AF1F
tetradic
#1F41AF #AF1F89 #AF8D1F #1FAF45
square
#1F41AF #AF1F89 #AF8D1F #1FAF45
split-complementary
#1F41AF #AF451F #89AF1F
monochromatic
#0D1A47 #162E7B #1F41AF #3159DA #6583E4

Accessibility & contrast

On white

8.63
#1F41AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F41AF
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F41AF#FFFFFF#000000##FFFFFF
##1F41AF1.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0045AD
Tritanopia (blue-blind)
#005E72
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f41af;
/* rgb */ color: rgb(31, 65, 175);
/* oklch */ color: oklch(42.7% 0.179 265.7);
Tailwind
colors: {
  custom: {
    50: '#7575c8',
    500: '#1f41af',
    950: '#000000',
  },
}
SCSS
$custom: #1f41af;
$custom-light: #7575c8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f41af",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 175
  },
  "hsl": {
    "h": 225.833,
    "s": 69.903,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4267,
    "c": 0.17943,
    "h": 265.7
  },
  "luminance": 0.07167
}

Semantic roles & 50–950 ramp

primary
#1F41AF
secondary
#C9B061
accent
#C33BED
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #1F41AF

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

Preview Lab → · Contrast checker → · Palette generator →

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