#1F41A5#1F41A5

#1F41A5 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.166 H 265.3°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#1F41A5
RGBrgb(31, 65, 165)
HSLhsl(225, 68%, 38%)
HSVhsv(225, 81%, 65%)
CMYKcmyk(81.2%, 60.6%, 0%, 35.3%)
CIE-LABlab(31.32, 25.99, -57.24)
CIE-LCHlch(31.32, 62.86, 294.42°)
OKLaboklab(41.76% -0.0137 -0.1655)
OKLCHoklch(41.76% 0.166 265.3)
XYZxyz(9.2445, 6.7874, 36.4129)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F41A5 #A5831F
analogous
#1F84A5 #1F41A5 #401FA5
triadic
#1F41A5 #A51F41 #41A51F
tetradic
#1F41A5 #A51F84 #A5831F #1FA540
square
#1F41A5 #A51F84 #A5831F #1FA540
split-complementary
#1F41A5 #A5401F #84A51F
monochromatic
#0C183E #152D71 #1F41A5 #2A56D7 #5E7FE1

Accessibility & contrast

On white

8.91
#1F41A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#1F41A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F41A5
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F41A5#FFFFFF#000000##FFFFFF
##1F41A51.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#005B6C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f41a5;
/* rgb */ color: rgb(31, 65, 165);
/* oklch */ color: oklch(41.8% 0.166 265.3);
Tailwind
colors: {
  custom: {
    50: '#7275c1',
    500: '#1f41a5',
    950: '#000000',
  },
}
SCSS
$custom: #1f41a5;
$custom-light: #7275c1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f41a5",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 165
  },
  "hsl": {
    "h": 224.776,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41761,
    "c": 0.16607,
    "h": 265.3
  },
  "luminance": 0.06789
}

Semantic roles & 50–950 ramp

primary
#1F41A5
secondary
#C5AA5B
accent
#BF3DEB
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1F41A5

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

Preview Lab → · Contrast checker → · Palette generator →

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