#1F3884#1F3884

#1F3884 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.0% C 0.131 H 266.2°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#1F3884
RGBrgb(31, 56, 132)
HSLhsl(225, 62%, 32%)
HSVhsv(225, 77%, 52%)
CMYKcmyk(76.5%, 57.6%, 0%, 48.2%)
CIE-LABlab(26.11, 19.13, -45.50)
CIE-LCHlch(26.11, 49.36, 292.80°)
OKLaboklab(37.01% -0.0087 -0.1312)
OKLCHoklch(37.01% 0.131 266.2)
XYZxyz(6.1426, 4.7849, 22.4252)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3884 #846B1F
analogous
#1F6A84 #1F3884 #391F84
triadic
#1F3884 #841F38 #38841F
tetradic
#1F3884 #841F6A #846B1F #1F8439
square
#1F3884 #841F6A #846B1F #1F8439
split-complementary
#1F3884 #84391F #6A841F
monochromatic
#080E21 #132352 #1F3884 #2B4DB6 #496CD4

Accessibility & contrast

On white

10.73
#1F3884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#1F3884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3884
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3884#FFFFFF#000000##FFFFFF
##1F38841.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004387
Deuteranopia (green-blind)
#003983
Tritanopia (blue-blind)
#004B58
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f3884;
/* rgb */ color: rgb(31, 56, 132);
/* oklch */ color: oklch(37.0% 0.131 266.2);
Tailwind
colors: {
  custom: {
    50: '#6a6ea8',
    500: '#1f3884',
    950: '#000000',
  },
}
SCSS
$custom: #1f3884;
$custom-light: #6a6ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3884",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 132
  },
  "hsl": {
    "h": 225.149,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37009,
    "c": 0.13147,
    "h": 266.2
  },
  "luminance": 0.04786
}

Semantic roles & 50–950 ramp

primary
#1F3884
secondary
#B79B48
accent
#BD43E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #1F3884

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

Preview Lab → · Contrast checker → · Palette generator →

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