#1F3D84#1F3D84

#1F3D84 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.1% C 0.125 H 264.1°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#1F3D84
RGBrgb(31, 61, 132)
HSLhsl(222, 62%, 32%)
HSVhsv(222, 77%, 52%)
CMYKcmyk(76.5%, 53.8%, 0%, 48.2%)
CIE-LABlab(27.56, 15.64, -43.16)
CIE-LCHlch(27.56, 45.91, 289.92°)
OKLaboklab(38.1% -0.0128 -0.1242)
OKLCHoklch(38.1% 0.125 264.1)
XYZxyz(6.3972, 5.2940, 22.5100)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3D84 #84661F
analogous
#1F7084 #1F3D84 #341F84
triadic
#1F3D84 #841F3D #3D841F
tetradic
#1F3D84 #841F70 #84661F #1F8434
square
#1F3D84 #841F70 #84661F #1F8434
split-complementary
#1F3D84 #84341F #70841F
monochromatic
#080F21 #132652 #1F3D84 #2B54B6 #4972D4

Accessibility & contrast

On white

10.20
#1F3D84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#1F3D84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3D84
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3D84#FFFFFF#000000##FFFFFF
##1F3D841.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4687
Deuteranopia (green-blind)
#003D83
Tritanopia (blue-blind)
#004E5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f3d84;
/* rgb */ color: rgb(31, 61, 132);
/* oklch */ color: oklch(38.1% 0.125 264.1);
Tailwind
colors: {
  custom: {
    50: '#6a72a8',
    500: '#1f3d84',
    950: '#000000',
  },
}
SCSS
$custom: #1f3d84;
$custom-light: #6a72a8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3d84",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 132
  },
  "hsl": {
    "h": 222.178,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.381,
    "c": 0.12487,
    "h": 264.1
  },
  "luminance": 0.05295
}

Semantic roles & 50–950 ramp

primary
#1F3D84
secondary
#B79648
accent
#B543E5
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #1F3D84

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

Preview Lab → · Contrast checker → · Palette generator →

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