#1F3E86#1F3E86

#1F3E86 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.5% C 0.126 H 263.9°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#1F3E86
RGBrgb(31, 62, 134)
HSLhsl(222, 62%, 32%)
HSVhsv(222, 77%, 53%)
CMYKcmyk(76.9%, 53.7%, 0%, 47.5%)
CIE-LABlab(28.00, 15.75, -43.69)
CIE-LCHlch(28.00, 46.44, 289.82°)
OKLaboklab(38.48% -0.0135 -0.1257)
OKLCHoklch(38.48% 0.126 263.9)
XYZxyz(6.5892, 5.4571, 23.2557)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3E86 #86671F
analogous
#1F7186 #1F3E86 #341F86
triadic
#1F3E86 #861F3E #3E861F
tetradic
#1F3E86 #861F71 #86671F #1F8634
square
#1F3E86 #861F71 #86671F #1F8634
split-complementary
#1F3E86 #86341F #71861F
monochromatic
#081023 #142754 #1F3E86 #2A55B8 #4A74D5

Accessibility & contrast

On white

10.04
#1F3E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#1F3E86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3E86
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3E86#FFFFFF#000000##FFFFFF
##1F3E861.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4789
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#004F5C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f3e86;
/* rgb */ color: rgb(31, 62, 134);
/* oklch */ color: oklch(38.5% 0.126 263.9);
Tailwind
colors: {
  custom: {
    50: '#6a72aa',
    500: '#1f3e86',
    950: '#000000',
  },
}
SCSS
$custom: #1f3e86;
$custom-light: #6a72aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3e86",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 134
  },
  "hsl": {
    "h": 221.942,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38484,
    "c": 0.12647,
    "h": 263.9
  },
  "luminance": 0.05458
}

Semantic roles & 50–950 ramp

primary
#1F3E86
secondary
#B89649
accent
#B442E5
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1F3E86

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

Preview Lab → · Contrast checker → · Palette generator →

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