#1F3984#1F3984

#1F3984 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.2% C 0.130 H 265.8°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#1F3984
RGBrgb(31, 57, 132)
HSLhsl(225, 62%, 32%)
HSVhsv(225, 77%, 52%)
CMYKcmyk(76.5%, 56.8%, 0%, 48.2%)
CIE-LABlab(26.40, 18.43, -45.04)
CIE-LCHlch(26.40, 48.66, 292.26°)
OKLaboklab(37.22% -0.0095 -0.1298)
OKLCHoklch(37.22% 0.13 265.8)
XYZxyz(6.1916, 4.8828, 22.4415)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3984 #846A1F
analogous
#1F6C84 #1F3984 #371F84
triadic
#1F3984 #841F39 #39841F
tetradic
#1F3984 #841F6C #846A1F #1F8437
square
#1F3984 #841F6C #846A1F #1F8437
split-complementary
#1F3984 #84371F #6C841F
monochromatic
#080E21 #132452 #1F3984 #2B4EB6 #496DD4

Accessibility & contrast

On white

10.62
#1F3984 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#1F3984 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3984
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3984#FFFFFF#000000##FFFFFF
##1F39841.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f3984;
/* rgb */ color: rgb(31, 57, 132);
/* oklch */ color: oklch(37.2% 0.130 265.8);
Tailwind
colors: {
  custom: {
    50: '#6a6ea8',
    500: '#1f3984',
    950: '#000000',
  },
}
SCSS
$custom: #1f3984;
$custom-light: #6a6ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3984",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 132
  },
  "hsl": {
    "h": 224.554,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37223,
    "c": 0.13015,
    "h": 265.8
  },
  "luminance": 0.04884
}

Semantic roles & 50–950 ramp

primary
#1F3984
secondary
#B79A48
accent
#BB43E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #1F3984

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

Preview Lab → · Contrast checker → · Palette generator →

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