#1F3FB4#1F3FB4

#1F3FB4 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.8% C 0.188 H 266.2°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#1F3FB4
RGBrgb(31, 63, 180)
HSLhsl(227, 71%, 41%)
HSVhsv(227, 83%, 71%)
CMYKcmyk(82.8%, 65%, 0%, 29.4%)
CIE-LABlab(32.12, 33.07, -64.88)
CIE-LCHlch(32.12, 72.82, 297.01°)
OKLaboklab(42.77% -0.0126 -0.1879)
OKLCHoklch(42.77% 0.188 266.2)
XYZxyz(10.5779, 7.1403, 43.9919)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3FB4 #B4941F
analogous
#1F8AB4 #1F3FB4 #4A1FB4
triadic
#1F3FB4 #B41F3F #3FB41F
tetradic
#1F3FB4 #B41F8A #B4941F #1FB44A
square
#1F3FB4 #B41F8A #B4941F #1FB44A
split-complementary
#1F3FB4 #B44A1F #8AB41F
monochromatic
#0D1A4C #162D80 #1F3FB4 #3458DC #6883E5

Accessibility & contrast

On white

8.65
#1F3FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#1F3FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3FB4
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3FB4#FFFFFF#000000##FFFFFF
##1F3FB41.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#0045B2
Tritanopia (blue-blind)
#005E74
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f3fb4;
/* rgb */ color: rgb(31, 63, 180);
/* oklch */ color: oklch(42.8% 0.188 266.2);
Tailwind
colors: {
  custom: {
    50: '#7673cc',
    500: '#1f3fb4',
    950: '#000000',
  },
}
SCSS
$custom: #1f3fb4;
$custom-light: #7673cc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3fb4",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 180
  },
  "hsl": {
    "h": 227.114,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42765,
    "c": 0.18833,
    "h": 266.2
  },
  "luminance": 0.07142
}

Semantic roles & 50–950 ramp

primary
#1F3FB4
secondary
#CBB564
accent
#C73AED
background
#F7F7FC
surface
#EEEDF9
border
#C9C8D2
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #1F3FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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