#1F3FA1#1F3FA1

#1F3FA1 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.0% C 0.163 H 265.6°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#1F3FA1
RGBrgb(31, 63, 161)
HSLhsl(225, 68%, 38%)
HSVhsv(225, 81%, 63%)
CMYKcmyk(80.7%, 60.9%, 0%, 36.9%)
CIE-LABlab(30.44, 25.77, -56.26)
CIE-LCHlch(30.44, 61.88, 294.62°)
OKLaboklab(41% -0.0125 -0.1626)
OKLCHoklch(41% 0.163 265.6)
XYZxyz(8.7733, 6.4185, 34.4878)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3FA1 #A1811F
analogous
#1F80A1 #1F3FA1 #401FA1
triadic
#1F3FA1 #A11F3F #3FA11F
tetradic
#1F3FA1 #A11F80 #A1811F #1FA140
square
#1F3FA1 #A11F80 #A1811F #1FA140
split-complementary
#1F3FA1 #A1401F #80A11F
monochromatic
#0B173A #152B6E #1F3FA1 #2953D4 #5B7CDF

Accessibility & contrast

On white

9.19
#1F3FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#1F3FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3FA1
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3FA1#FFFFFF#000000##FFFFFF
##1F3FA11.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f3fa1;
/* rgb */ color: rgb(31, 63, 161);
/* oklch */ color: oklch(41.0% 0.163 265.6);
Tailwind
colors: {
  custom: {
    50: '#7173be',
    500: '#1f3fa1',
    950: '#000000',
  },
}
SCSS
$custom: #1f3fa1;
$custom-light: #7173be;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3fa1",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 161
  },
  "hsl": {
    "h": 225.231,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41004,
    "c": 0.16313,
    "h": 265.6
  },
  "luminance": 0.0642
}

Semantic roles & 50–950 ramp

primary
#1F3FA1
secondary
#C4A958
accent
#C03DEB
background
#F7F6FB
surface
#EDECF7
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1F3FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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