#1F3D9D#1F3D9D

#1F3D9D is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.2% C 0.160 H 265.9°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#1F3D9D
RGBrgb(31, 61, 157)
HSLhsl(226, 67%, 37%)
HSVhsv(226, 80%, 62%)
CMYKcmyk(80.3%, 61.1%, 0%, 38.4%)
CIE-LABlab(29.57, 25.57, -55.26)
CIE-LCHlch(29.57, 60.89, 294.83°)
OKLaboklab(40.24% -0.0113 -0.1598)
OKLCHoklch(40.24% 0.16 265.9)
XYZxyz(8.3175, 6.0621, 32.6235)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3D9D #9D7F1F
analogous
#1F7C9D #1F3D9D #401F9D
triadic
#1F3D9D #9D1F3D #3D9D1F
tetradic
#1F3D9D #9D1F7C #9D7F1F #1F9D40
square
#1F3D9D #9D1F7C #9D7F1F #1F9D40
split-complementary
#1F3D9D #9D401F #7C9D1F
monochromatic
#0B1537 #15296A #1F3D9D #2951D0 #5878DE

Accessibility & contrast

On white

9.49
#1F3D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#1F3D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3D9D
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3D9D#FFFFFF#000000##FFFFFF
##1F3D9D1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA0
Deuteranopia (green-blind)
#00409B
Tritanopia (blue-blind)
#005667
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f3d9d;
/* rgb */ color: rgb(31, 61, 157);
/* oklch */ color: oklch(40.2% 0.160 265.9);
Tailwind
colors: {
  custom: {
    50: '#7072bb',
    500: '#1f3d9d',
    950: '#000000',
  },
}
SCSS
$custom: #1f3d9d;
$custom-light: #7072bb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3d9d",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 157
  },
  "hsl": {
    "h": 225.714,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40245,
    "c": 0.16017,
    "h": 265.9
  },
  "luminance": 0.06063
}

Semantic roles & 50–950 ramp

primary
#1F3D9D
secondary
#C2A856
accent
#C13EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #1F3D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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