#1F3384#1F3384

#1F3384 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.0% C 0.138 H 268.0°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#1F3384
RGBrgb(31, 51, 132)
HSLhsl(228, 62%, 32%)
HSVhsv(228, 77%, 52%)
CMYKcmyk(76.5%, 61.4%, 0%, 48.2%)
CIE-LABlab(24.72, 22.61, -47.78)
CIE-LCHlch(24.72, 52.86, 295.33°)
OKLaboklab(35.96% -0.0048 -0.1379)
OKLCHoklch(35.96% 0.138 268)
XYZxyz(5.9123, 4.3243, 22.3484)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3384 #84701F
analogous
#1F6684 #1F3384 #3E1F84
triadic
#1F3384 #841F33 #33841F
tetradic
#1F3384 #841F66 #84701F #1F843E
square
#1F3384 #841F66 #84701F #1F843E
split-complementary
#1F3384 #843E1F #66841F
monochromatic
#080D21 #132052 #1F3384 #2B46B6 #4965D4

Accessibility & contrast

On white

11.26
#1F3384 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#1F3384 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3384
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3384#FFFFFF#000000##FFFFFF
##1F33841.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004087
Deuteranopia (green-blind)
#003682
Tritanopia (blue-blind)
#004756
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f3384;
/* rgb */ color: rgb(31, 51, 132);
/* oklch */ color: oklch(36.0% 0.138 268.0);
Tailwind
colors: {
  custom: {
    50: '#6b6aa8',
    500: '#1f3384',
    950: '#000000',
  },
}
SCSS
$custom: #1f3384;
$custom-light: #6b6aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3384",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 132
  },
  "hsl": {
    "h": 228.119,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35963,
    "c": 0.13802,
    "h": 268
  },
  "luminance": 0.04325
}

Semantic roles & 50–950 ramp

primary
#1F3384
secondary
#B7A148
accent
#C543E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1F3384

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

Preview Lab → · Contrast checker → · Palette generator →

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