#1F3A84#1F3A84

#1F3A84 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.4% C 0.129 H 265.4°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#1F3A84
RGBrgb(31, 58, 132)
HSLhsl(224, 62%, 32%)
HSVhsv(224, 77%, 52%)
CMYKcmyk(76.5%, 56.1%, 0%, 48.2%)
CIE-LABlab(26.69, 17.73, -44.57)
CIE-LCHlch(26.69, 47.97, 291.70°)
OKLaboklab(37.44% -0.0103 -0.1284)
OKLCHoklch(37.44% 0.129 265.4)
XYZxyz(6.2415, 4.9827, 22.4581)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3A84 #84691F
analogous
#1F6D84 #1F3A84 #361F84
triadic
#1F3A84 #841F3A #3A841F
tetradic
#1F3A84 #841F6D #84691F #1F8436
square
#1F3A84 #841F6D #84691F #1F8436
split-complementary
#1F3A84 #84361F #6D841F
monochromatic
#080E21 #132452 #1F3A84 #2B50B6 #496ED4

Accessibility & contrast

On white

10.52
#1F3A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#1F3A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3A84
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3A84#FFFFFF#000000##FFFFFF
##1F3A841.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004487
Deuteranopia (green-blind)
#003B83
Tritanopia (blue-blind)
#004C59
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f3a84;
/* rgb */ color: rgb(31, 58, 132);
/* oklch */ color: oklch(37.4% 0.129 265.4);
Tailwind
colors: {
  custom: {
    50: '#6a6fa8',
    500: '#1f3a84',
    950: '#000000',
  },
}
SCSS
$custom: #1f3a84;
$custom-light: #6a6fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3a84",
  "rgb": {
    "r": 31,
    "g": 58,
    "b": 132
  },
  "hsl": {
    "h": 223.96,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3744,
    "c": 0.12883,
    "h": 265.4
  },
  "luminance": 0.04983
}

Semantic roles & 50–950 ramp

primary
#1F3A84
secondary
#B79948
accent
#BA43E5
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #1F3A84

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

Preview Lab → · Contrast checker → · Palette generator →

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