#1F3BB4#1F3BB4

#1F3BB4 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.0% C 0.193 H 266.8°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#1F3BB4
RGBrgb(31, 59, 180)
HSLhsl(229, 71%, 41%)
HSVhsv(229, 83%, 71%)
CMYKcmyk(82.8%, 67.2%, 0%, 29.4%)
CIE-LABlab(31.15, 35.66, -66.49)
CIE-LCHlch(31.15, 75.45, 298.21°)
OKLaboklab(42.05% -0.0107 -0.1926)
OKLCHoklch(42.05% 0.193 266.8)
XYZxyz(10.3644, 6.7133, 43.9207)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3BB4 #B4981F
analogous
#1F86B4 #1F3BB4 #4E1FB4
triadic
#1F3BB4 #B41F3B #3BB41F
tetradic
#1F3BB4 #B41F86 #B4981F #1FB44E
square
#1F3BB4 #B41F86 #B4981F #1FB44E
split-complementary
#1F3BB4 #B44E1F #86B41F
monochromatic
#0D194C #162A80 #1F3BB4 #3454DC #6880E5

Accessibility & contrast

On white

8.96
#1F3BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#1F3BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3BB4
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3BB4#FFFFFF#000000##FFFFFF
##1F3BB41.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B8
Deuteranopia (green-blind)
#0042B2
Tritanopia (blue-blind)
#005C72
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1f3bb4;
/* rgb */ color: rgb(31, 59, 180);
/* oklch */ color: oklch(42.0% 0.193 266.8);
Tailwind
colors: {
  custom: {
    50: '#7771cc',
    500: '#1f3bb4',
    950: '#000000',
  },
}
SCSS
$custom: #1f3bb4;
$custom-light: #7771cc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3bb4",
  "rgb": {
    "r": 31,
    "g": 59,
    "b": 180
  },
  "hsl": {
    "h": 228.725,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42047,
    "c": 0.19294,
    "h": 266.8
  },
  "luminance": 0.06715
}

Semantic roles & 50–950 ramp

primary
#1F3BB4
secondary
#CBB764
accent
#CC3AED
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #1F3BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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