#1F3382#1F3382

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

Color values

HEX#1F3382
RGBrgb(31, 51, 130)
HSLhsl(228, 61%, 32%)
HSVhsv(228, 76%, 51%)
CMYKcmyk(76.2%, 60.8%, 0%, 49%)
CIE-LABlab(24.54, 21.82, -46.80)
CIE-LCHlch(24.54, 51.64, 295.00°)
OKLaboklab(35.78% -0.0048 -0.1351)
OKLCHoklch(35.78% 0.135 268)
XYZxyz(5.7768, 4.2700, 21.6345)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3382 #826E1F
analogous
#1F6582 #1F3382 #3D1F82
triadic
#1F3382 #821F33 #33821F
tetradic
#1F3382 #821F65 #826E1F #1F823D
square
#1F3382 #821F65 #826E1F #1F823D
split-complementary
#1F3382 #823D1F #65821F
monochromatic
#070C1F #132051 #1F3382 #2B46B3 #4864D3

Accessibility & contrast

On white

11.33
#1F3382 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#1F3382 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3382
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3382#FFFFFF#000000##FFFFFF
##1F33821.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f3382;
/* rgb */ color: rgb(31, 51, 130);
/* oklch */ color: oklch(35.8% 0.135 268.0);
Tailwind
colors: {
  custom: {
    50: '#6a6aa7',
    500: '#1f3382',
    950: '#000000',
  },
}
SCSS
$custom: #1f3382;
$custom-light: #6a6aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3382",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 130
  },
  "hsl": {
    "h": 227.879,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35782,
    "c": 0.13517,
    "h": 268
  },
  "luminance": 0.04271
}

Semantic roles & 50–950 ramp

primary
#1F3382
secondary
#B59F48
accent
#C443E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F3382

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

Preview Lab → · Contrast checker → · Palette generator →

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