#1F3EB4#1F3EB4

#1F3EB4 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.6% C 0.190 H 266.3°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#1F3EB4
RGBrgb(31, 62, 180)
HSLhsl(228, 71%, 41%)
HSVhsv(228, 83%, 71%)
CMYKcmyk(82.8%, 65.6%, 0%, 29.4%)
CIE-LABlab(31.88, 33.72, -65.29)
CIE-LCHlch(31.88, 73.48, 297.32°)
OKLaboklab(42.58% -0.0121 -0.1891)
OKLCHoklch(42.58% 0.19 266.3)
XYZxyz(10.5230, 7.0306, 43.9736)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3EB4 #B4951F
analogous
#1F89B4 #1F3EB4 #4B1FB4
triadic
#1F3EB4 #B41F3E #3EB41F
tetradic
#1F3EB4 #B41F89 #B4951F #1FB44B
square
#1F3EB4 #B41F89 #B4951F #1FB44B
split-complementary
#1F3EB4 #B44B1F #89B41F
monochromatic
#0D1A4C #162C80 #1F3EB4 #3457DC #6882E5

Accessibility & contrast

On white

8.73
#1F3EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#1F3EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3EB4
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3EB4#FFFFFF#000000##FFFFFF
##1F3EB41.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#0044B2
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f3eb4;
/* rgb */ color: rgb(31, 62, 180);
/* oklch */ color: oklch(42.6% 0.190 266.3);
Tailwind
colors: {
  custom: {
    50: '#7673cc',
    500: '#1f3eb4',
    950: '#000000',
  },
}
SCSS
$custom: #1f3eb4;
$custom-light: #7673cc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3eb4",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 180
  },
  "hsl": {
    "h": 227.517,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42583,
    "c": 0.1895,
    "h": 266.3
  },
  "luminance": 0.07032
}

Semantic roles & 50–950 ramp

primary
#1F3EB4
secondary
#CBB564
accent
#C83AED
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #1F3EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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