#1F3D91#1F3D91

#1F3D91 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.2% C 0.144 H 265.3°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#1F3D91
RGBrgb(31, 61, 145)
HSLhsl(224, 65%, 35%)
HSVhsv(224, 79%, 57%)
CMYKcmyk(78.6%, 57.9%, 0%, 43.1%)
CIE-LABlab(28.57, 20.84, -49.56)
CIE-LCHlch(28.57, 53.76, 292.80°)
OKLaboklab(39.19% -0.0118 -0.143)
OKLCHoklch(39.19% 0.144 265.3)
XYZxyz(7.3428, 5.6723, 27.4904)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3D91 #91731F
analogous
#1F7691 #1F3D91 #3A1F91
triadic
#1F3D91 #911F3D #3D911F
tetradic
#1F3D91 #911F76 #91731F #1F913A
square
#1F3D91 #911F76 #91731F #1F913A
split-complementary
#1F3D91 #913A1F #76911F
monochromatic
#09132C #14285F #1F3D91 #2A52C3 #5175DA

Accessibility & contrast

On white

9.84
#1F3D91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#1F3D91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3D91
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3D91#FFFFFF#000000##FFFFFF
##1F3D911.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004994
Deuteranopia (green-blind)
#003E8F
Tritanopia (blue-blind)
#005261
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f3d91;
/* rgb */ color: rgb(31, 61, 145);
/* oklch */ color: oklch(39.2% 0.144 265.3);
Tailwind
colors: {
  custom: {
    50: '#6d72b2',
    500: '#1f3d91',
    950: '#000000',
  },
}
SCSS
$custom: #1f3d91;
$custom-light: #6d72b2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3d91",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 145
  },
  "hsl": {
    "h": 224.211,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39186,
    "c": 0.14351,
    "h": 265.3
  },
  "luminance": 0.05673
}

Semantic roles & 50–950 ramp

primary
#1F3D91
secondary
#BDA04F
accent
#BC40E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1F3D91

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

Preview Lab → · Contrast checker → · Palette generator →

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