#1F3FA7#1F3FA7

#1F3FA7 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.5% C 0.171 H 265.8°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#1F3FA7
RGBrgb(31, 63, 167)
HSLhsl(226, 69%, 39%)
HSVhsv(226, 81%, 65%)
CMYKcmyk(81.4%, 62.3%, 0%, 34.5%)
CIE-LABlab(30.96, 28.11, -59.03)
CIE-LCHlch(30.96, 65.38, 295.46°)
OKLaboklab(41.55% -0.0124 -0.1708)
OKLCHoklch(41.55% 0.171 265.8)
XYZxyz(9.3152, 6.6352, 37.3415)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3FA7 #A7871F
analogous
#1F83A7 #1F3FA7 #431FA7
triadic
#1F3FA7 #A71F3F #3FA71F
tetradic
#1F3FA7 #A71F83 #A7871F #1FA743
square
#1F3FA7 #A71F83 #A7871F #1FA743
split-complementary
#1F3FA7 #A7431F #83A71F
monochromatic
#0C1840 #152C73 #1F3FA7 #2B54D8 #5F7EE1

Accessibility & contrast

On white

9.02
#1F3FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#1F3FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3FA7
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3FA7#FFFFFF#000000##FFFFFF
##1F3FA71.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAA
Deuteranopia (green-blind)
#0043A5
Tritanopia (blue-blind)
#005A6D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1f3fa7;
/* rgb */ color: rgb(31, 63, 167);
/* oklch */ color: oklch(41.5% 0.171 265.8);
Tailwind
colors: {
  custom: {
    50: '#7373c2',
    500: '#1f3fa7',
    950: '#000000',
  },
}
SCSS
$custom: #1f3fa7;
$custom-light: #7373c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3fa7",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 167
  },
  "hsl": {
    "h": 225.882,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41549,
    "c": 0.17122,
    "h": 265.8
  },
  "luminance": 0.06636
}

Semantic roles & 50–950 ramp

primary
#1F3FA7
secondary
#C6AD5C
accent
#C23CEC
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1F3FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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