#1F3EA7#1F3EA7

#1F3EA7 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.4% C 0.172 H 266.1°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#1F3EA7
RGBrgb(31, 62, 167)
HSLhsl(226, 69%, 39%)
HSVhsv(226, 81%, 65%)
CMYKcmyk(81.4%, 62.9%, 0%, 34.5%)
CIE-LABlab(30.70, 28.77, -59.45)
CIE-LCHlch(30.70, 66.05, 295.83°)
OKLaboklab(41.36% -0.0119 -0.172)
OKLCHoklch(41.36% 0.172 266.1)
XYZxyz(9.2603, 6.5255, 37.3232)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3EA7 #A7881F
analogous
#1F82A7 #1F3EA7 #441FA7
triadic
#1F3EA7 #A71F3E #3EA71F
tetradic
#1F3EA7 #A71F82 #A7881F #1FA744
square
#1F3EA7 #A71F82 #A7881F #1FA744
split-complementary
#1F3EA7 #A7441F #82A71F
monochromatic
#0C1840 #152B73 #1F3EA7 #2B53D8 #5F7DE1

Accessibility & contrast

On white

9.11
#1F3EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#1F3EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3EA7
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3EA7#FFFFFF#000000##FFFFFF
##1F3EA71.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAA
Deuteranopia (green-blind)
#0042A5
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f3ea7;
/* rgb */ color: rgb(31, 62, 167);
/* oklch */ color: oklch(41.4% 0.172 266.1);
Tailwind
colors: {
  custom: {
    50: '#7373c2',
    500: '#1f3ea7',
    950: '#000000',
  },
}
SCSS
$custom: #1f3ea7;
$custom-light: #7373c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3ea7",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 167
  },
  "hsl": {
    "h": 226.324,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41355,
    "c": 0.17244,
    "h": 266.1
  },
  "luminance": 0.06527
}

Semantic roles & 50–950 ramp

primary
#1F3EA7
secondary
#C6AE5C
accent
#C43CEC
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1F3EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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