#1F3C91#1F3C91

#1F3C91 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.0% C 0.145 H 265.6°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#1F3C91
RGBrgb(31, 60, 145)
HSLhsl(225, 65%, 35%)
HSVhsv(225, 79%, 57%)
CMYKcmyk(78.6%, 58.6%, 0%, 43.1%)
CIE-LABlab(28.29, 21.53, -50.02)
CIE-LCHlch(28.29, 54.45, 293.29°)
OKLaboklab(38.98% -0.011 -0.1444)
OKLCHoklch(38.98% 0.145 265.6)
XYZxyz(7.2900, 5.5665, 27.4728)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3C91 #91741F
analogous
#1F7591 #1F3C91 #3B1F91
triadic
#1F3C91 #911F3C #3C911F
tetradic
#1F3C91 #911F75 #91741F #1F913B
square
#1F3C91 #911F75 #91741F #1F913B
split-complementary
#1F3C91 #913B1F #75911F
monochromatic
#09122C #14275F #1F3C91 #2A51C3 #5174DA

Accessibility & contrast

On white

9.94
#1F3C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#1F3C91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3C91
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3C91#FFFFFF#000000##FFFFFF
##1F3C911.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f3c91;
/* rgb */ color: rgb(31, 60, 145);
/* oklch */ color: oklch(39.0% 0.145 265.6);
Tailwind
colors: {
  custom: {
    50: '#6d71b2',
    500: '#1f3c91',
    950: '#000000',
  },
}
SCSS
$custom: #1f3c91;
$custom-light: #6d71b2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3c91",
  "rgb": {
    "r": 31,
    "g": 60,
    "b": 145
  },
  "hsl": {
    "h": 224.737,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38976,
    "c": 0.1448,
    "h": 265.6
  },
  "luminance": 0.05567
}

Semantic roles & 50–950 ramp

primary
#1F3C91
secondary
#BDA14F
accent
#BD40E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1F3C91

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

Preview Lab → · Contrast checker → · Palette generator →

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