#1F3786#1F3786

#1F3786 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.0% C 0.136 H 266.7°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#1F3786
RGBrgb(31, 55, 134)
HSLhsl(226, 62%, 32%)
HSVhsv(226, 77%, 53%)
CMYKcmyk(76.9%, 59%, 0%, 47.5%)
CIE-LABlab(25.99, 20.62, -46.95)
CIE-LCHlch(25.99, 51.28, 293.72°)
OKLaboklab(36.97% -0.0078 -0.1354)
OKLCHoklch(36.97% 0.136 266.7)
XYZxyz(6.2328, 4.7442, 23.1369)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3786 #866E1F
analogous
#1F6B86 #1F3786 #3A1F86
triadic
#1F3786 #861F37 #37861F
tetradic
#1F3786 #861F6B #866E1F #1F863A
square
#1F3786 #861F6B #866E1F #1F863A
split-complementary
#1F3786 #863A1F #6B861F
monochromatic
#080E23 #142354 #1F3786 #2A4BB8 #4A6BD5

Accessibility & contrast

On white

10.77
#1F3786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#1F3786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3786
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3786#FFFFFF#000000##FFFFFF
##1F37861.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004289
Deuteranopia (green-blind)
#003984
Tritanopia (blue-blind)
#004B59
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f3786;
/* rgb */ color: rgb(31, 55, 134);
/* oklch */ color: oklch(37.0% 0.136 266.7);
Tailwind
colors: {
  custom: {
    50: '#6b6daa',
    500: '#1f3786',
    950: '#000000',
  },
}
SCSS
$custom: #1f3786;
$custom-light: #6b6daa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3786",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 134
  },
  "hsl": {
    "h": 226.019,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3697,
    "c": 0.13566,
    "h": 266.7
  },
  "luminance": 0.04745
}

Semantic roles & 50–950 ramp

primary
#1F3786
secondary
#B89E49
accent
#BF42E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1F3786

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

Preview Lab → · Contrast checker → · Palette generator →

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