#1F2884#1F2884

#1F2884 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.152 H 271.0°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#1F2884
RGBrgb(31, 40, 132)
HSLhsl(235, 62%, 32%)
HSVhsv(235, 77%, 52%)
CMYKcmyk(76.5%, 69.7%, 0%, 48.2%)
CIE-LABlab(21.85, 30.09, -52.46)
CIE-LCHlch(21.85, 60.48, 299.84°)
OKLaboklab(33.86% 0.0027 -0.1518)
OKLCHoklch(33.86% 0.152 271)
XYZxyz(5.4873, 3.4743, 22.2067)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2884 #847B1F
analogous
#1F5B84 #1F2884 #481F84
triadic
#1F2884 #841F28 #28841F
tetradic
#1F2884 #841F5B #847B1F #1F8448
square
#1F2884 #841F5B #847B1F #1F8448
split-complementary
#1F2884 #84481F #5B841F
monochromatic
#080A21 #131952 #1F2884 #2B37B6 #4956D4

Accessibility & contrast

On white

12.39
#1F2884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1F2884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2884
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2884#FFFFFF#000000##FFFFFF
##1F28841.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003987
Deuteranopia (green-blind)
#003082
Tritanopia (blue-blind)
#004152
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2884;
/* rgb */ color: rgb(31, 40, 132);
/* oklch */ color: oklch(33.9% 0.152 271.0);
Tailwind
colors: {
  custom: {
    50: '#6c62a9',
    500: '#1f2884',
    950: '#000000',
  },
}
SCSS
$custom: #1f2884;
$custom-light: #6c62a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2884",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 132
  },
  "hsl": {
    "h": 234.653,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33855,
    "c": 0.15179,
    "h": 271
  },
  "luminance": 0.03475
}

Semantic roles & 50–950 ramp

primary
#1F2884
secondary
#B7AD48
accent
#D743E5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2884

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

Preview Lab → · Contrast checker → · Palette generator →

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