#1F3DB4#1F3DB4

#1F3DB4 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.4% C 0.191 H 266.5°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#1F3DB4
RGBrgb(31, 61, 180)
HSLhsl(228, 71%, 41%)
HSVhsv(228, 83%, 71%)
CMYKcmyk(82.8%, 66.1%, 0%, 29.4%)
CIE-LABlab(31.63, 34.37, -65.69)
CIE-LCHlch(31.63, 74.14, 297.62°)
OKLaboklab(42.4% -0.0116 -0.1903)
OKLCHoklch(42.4% 0.191 266.5)
XYZxyz(10.4691, 6.9228, 43.9556)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3DB4 #B4961F
analogous
#1F88B4 #1F3DB4 #4B1FB4
triadic
#1F3DB4 #B41F3D #3DB41F
tetradic
#1F3DB4 #B41F88 #B4961F #1FB44B
square
#1F3DB4 #B41F88 #B4961F #1FB44B
split-complementary
#1F3DB4 #B44B1F #88B41F
monochromatic
#0D1A4C #162B80 #1F3DB4 #3456DC #6881E5

Accessibility & contrast

On white

8.81
#1F3DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#1F3DB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3DB4
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3DB4#FFFFFF#000000##FFFFFF
##1F3DB41.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#0043B2
Tritanopia (blue-blind)
#005D73
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f3db4;
/* rgb */ color: rgb(31, 61, 180);
/* oklch */ color: oklch(42.4% 0.191 266.5);
Tailwind
colors: {
  custom: {
    50: '#7672cc',
    500: '#1f3db4',
    950: '#000000',
  },
}
SCSS
$custom: #1f3db4;
$custom-light: #7672cc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3db4",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 180
  },
  "hsl": {
    "h": 227.919,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42402,
    "c": 0.19066,
    "h": 266.5
  },
  "luminance": 0.06924
}

Semantic roles & 50–950 ramp

primary
#1F3DB4
secondary
#CBB664
accent
#C93AED
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #1F3DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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