#1F3EA0#1F3EA0

#1F3EA0 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.7% C 0.163 H 265.8°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#1F3EA0
RGBrgb(31, 62, 160)
HSLhsl(226, 68%, 37%)
HSVhsv(226, 81%, 63%)
CMYKcmyk(80.6%, 61.2%, 0%, 37.3%)
CIE-LABlab(30.09, 26.06, -56.23)
CIE-LCHlch(30.09, 61.97, 294.87°)
OKLaboklab(40.72% -0.0119 -0.1626)
OKLCHoklch(40.72% 0.163 265.8)
XYZxyz(8.6306, 6.2736, 34.0069)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3EA0 #A0811F
analogous
#1F7FA0 #1F3EA0 #401FA0
triadic
#1F3EA0 #A01F3E #3EA01F
tetradic
#1F3EA0 #A01F7F #A0811F #1FA040
square
#1F3EA0 #A01F7F #A0811F #1FA040
split-complementary
#1F3EA0 #A0401F #7FA01F
monochromatic
#0B1639 #152A6D #1F3EA0 #2952D3 #5A7ADF

Accessibility & contrast

On white

9.31
#1F3EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#1F3EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3EA0
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3EA0#FFFFFF#000000##FFFFFF
##1F3EA01.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA3
Deuteranopia (green-blind)
#00419E
Tritanopia (blue-blind)
#005769
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f3ea0;
/* rgb */ color: rgb(31, 62, 160);
/* oklch */ color: oklch(40.7% 0.163 265.8);
Tailwind
colors: {
  custom: {
    50: '#7172bd',
    500: '#1f3ea0',
    950: '#000000',
  },
}
SCSS
$custom: #1f3ea0;
$custom-light: #7172bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3ea0",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 160
  },
  "hsl": {
    "h": 225.581,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40715,
    "c": 0.16302,
    "h": 265.8
  },
  "luminance": 0.06275
}

Semantic roles & 50–950 ramp

primary
#1F3EA0
secondary
#C3A958
accent
#C13DEA
background
#F7F6FB
surface
#EDECF7
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1F3EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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