#1F3383#1F3383

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

Color values

HEX#1F3383
RGBrgb(31, 51, 131)
HSLhsl(228, 62%, 32%)
HSVhsv(228, 76%, 51%)
CMYKcmyk(76.3%, 61.1%, 0%, 48.6%)
CIE-LABlab(24.63, 22.22, -47.29)
CIE-LCHlch(24.63, 52.25, 295.17°)
OKLaboklab(35.87% -0.0048 -0.1365)
OKLCHoklch(35.87% 0.137 268)
XYZxyz(5.8442, 4.2970, 21.9897)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3383 #836F1F
analogous
#1F6583 #1F3383 #3D1F83
triadic
#1F3383 #831F33 #33831F
tetradic
#1F3383 #831F65 #836F1F #1F833D
square
#1F3383 #831F65 #836F1F #1F833D
split-complementary
#1F3383 #833D1F #65831F
monochromatic
#080C20 #132052 #1F3383 #2B46B4 #4964D4

Accessibility & contrast

On white

11.29
#1F3383 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#1F3383 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3383
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3383#FFFFFF#000000##FFFFFF
##1F33831.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F86
Deuteranopia (green-blind)
#003681
Tritanopia (blue-blind)
#004755
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f3383;
/* rgb */ color: rgb(31, 51, 131);
/* oklch */ color: oklch(35.9% 0.137 268.0);
Tailwind
colors: {
  custom: {
    50: '#6a6aa8',
    500: '#1f3383',
    950: '#000000',
  },
}
SCSS
$custom: #1f3383;
$custom-light: #6a6aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3383",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 131
  },
  "hsl": {
    "h": 228,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35872,
    "c": 0.13659,
    "h": 268
  },
  "luminance": 0.04298
}

Semantic roles & 50–950 ramp

primary
#1F3383
secondary
#B6A048
accent
#C443E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070610
muted
#7A7A7F

Preview Lab

Preview with #1F3383

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

Preview Lab → · Contrast checker → · Palette generator →

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