#1F3A91#1F3A91

#1F3A91 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.6% C 0.147 H 266.3°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#1F3A91
RGBrgb(31, 58, 145)
HSLhsl(226, 65%, 35%)
HSVhsv(226, 79%, 57%)
CMYKcmyk(78.6%, 60%, 0%, 43.1%)
CIE-LABlab(27.74, 22.90, -50.91)
CIE-LCHlch(27.74, 55.83, 294.22°)
OKLaboklab(38.56% -0.0096 -0.147)
OKLCHoklch(38.56% 0.147 266.3)
XYZxyz(7.1872, 5.3609, 27.4386)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3A91 #91761F
analogous
#1F7391 #1F3A91 #3D1F91
triadic
#1F3A91 #911F3A #3A911F
tetradic
#1F3A91 #911F73 #91761F #1F913D
square
#1F3A91 #911F73 #91761F #1F913D
split-complementary
#1F3A91 #913D1F #73911F
monochromatic
#09122C #14265F #1F3A91 #2A4EC3 #5171DA

Accessibility & contrast

On white

10.13
#1F3A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#1F3A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3A91
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3A91#FFFFFF#000000##FFFFFF
##1F3A911.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004794
Deuteranopia (green-blind)
#003C8F
Tritanopia (blue-blind)
#00505F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f3a91;
/* rgb */ color: rgb(31, 58, 145);
/* oklch */ color: oklch(38.6% 0.147 266.3);
Tailwind
colors: {
  custom: {
    50: '#6e6fb2',
    500: '#1f3a91',
    950: '#000000',
  },
}
SCSS
$custom: #1f3a91;
$custom-light: #6e6fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3a91",
  "rgb": {
    "r": 31,
    "g": 58,
    "b": 145
  },
  "hsl": {
    "h": 225.789,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38563,
    "c": 0.14736,
    "h": 266.3
  },
  "luminance": 0.05362
}

Semantic roles & 50–950 ramp

primary
#1F3A91
secondary
#BDA34F
accent
#C040E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1F3A91

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

Preview Lab → · Contrast checker → · Palette generator →

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