#1F3E91#1F3E91

#1F3E91 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.4% C 0.142 H 265.0°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#1F3E91
RGBrgb(31, 62, 145)
HSLhsl(224, 65%, 35%)
HSVhsv(224, 79%, 57%)
CMYKcmyk(78.6%, 57.2%, 0%, 43.1%)
CIE-LABlab(28.85, 20.15, -49.11)
CIE-LCHlch(28.85, 53.08, 292.31°)
OKLaboklab(39.4% -0.0125 -0.1417)
OKLCHoklch(39.4% 0.142 265)
XYZxyz(7.3967, 5.7801, 27.5084)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3E91 #91721F
analogous
#1F7791 #1F3E91 #391F91
triadic
#1F3E91 #911F3E #3E911F
tetradic
#1F3E91 #911F77 #91721F #1F9139
square
#1F3E91 #911F77 #91721F #1F9139
split-complementary
#1F3E91 #91391F #77911F
monochromatic
#09132C #14285F #1F3E91 #2A54C3 #5176DA

Accessibility & contrast

On white

9.74
#1F3E91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#1F3E91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3E91
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3E91#FFFFFF#000000##FFFFFF
##1F3E911.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004994
Deuteranopia (green-blind)
#003F8F
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f3e91;
/* rgb */ color: rgb(31, 62, 145);
/* oklch */ color: oklch(39.4% 0.142 265.0);
Tailwind
colors: {
  custom: {
    50: '#6d72b2',
    500: '#1f3e91',
    950: '#000000',
  },
}
SCSS
$custom: #1f3e91;
$custom-light: #6d72b2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3e91",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 145
  },
  "hsl": {
    "h": 223.684,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39397,
    "c": 0.14222,
    "h": 265
  },
  "luminance": 0.05781
}

Semantic roles & 50–950 ramp

primary
#1F3E91
secondary
#BD9F4F
accent
#BA40E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F3E91

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

Preview Lab → · Contrast checker → · Palette generator →

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