#1F3682#1F3682

#1F3682 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.4% C 0.131 H 266.9°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#1F3682
RGBrgb(31, 54, 130)
HSLhsl(226, 61%, 32%)
HSVhsv(226, 76%, 51%)
CMYKcmyk(76.2%, 58.5%, 0%, 49%)
CIE-LABlab(25.38, 19.73, -45.44)
CIE-LCHlch(25.38, 49.53, 293.47°)
OKLaboklab(36.41% -0.0072 -0.131)
OKLCHoklch(36.41% 0.131 266.9)
XYZxyz(5.9121, 4.5407, 21.6796)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3682 #826B1F
analogous
#1F6882 #1F3682 #3A1F82
triadic
#1F3682 #821F36 #36821F
tetradic
#1F3682 #821F68 #826B1F #1F823A
square
#1F3682 #821F68 #826B1F #1F823A
split-complementary
#1F3682 #823A1F #68821F
monochromatic
#070D1F #132151 #1F3682 #2B4BB3 #4868D3

Accessibility & contrast

On white

11.01
#1F3682 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#1F3682 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3682
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3682#FFFFFF#000000##FFFFFF
##1F36821.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004185
Deuteranopia (green-blind)
#003881
Tritanopia (blue-blind)
#004956
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f3682;
/* rgb */ color: rgb(31, 54, 130);
/* oklch */ color: oklch(36.4% 0.131 266.9);
Tailwind
colors: {
  custom: {
    50: '#6a6ca7',
    500: '#1f3682',
    950: '#000000',
  },
}
SCSS
$custom: #1f3682;
$custom-light: #6a6ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3682",
  "rgb": {
    "r": 31,
    "g": 54,
    "b": 130
  },
  "hsl": {
    "h": 226.061,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3641,
    "c": 0.13122,
    "h": 266.9
  },
  "luminance": 0.04541
}

Semantic roles & 50–950 ramp

primary
#1F3682
secondary
#B59C48
accent
#BF43E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1F3682

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

Preview Lab → · Contrast checker → · Palette generator →

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