#1F2786#1F2786

#1F2786 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.156 H 271.1°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#1F2786
RGBrgb(31, 39, 134)
HSLhsl(235, 62%, 32%)
HSVhsv(235, 77%, 53%)
CMYKcmyk(76.9%, 70.9%, 0%, 47.5%)
CIE-LABlab(21.81, 31.49, -53.79)
CIE-LCHlch(21.81, 62.33, 300.35°)
OKLaboklab(33.89% 0.0031 -0.1556)
OKLCHoklch(33.89% 0.156 271.1)
XYZxyz(5.5922, 3.4630, 22.9233)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2786 #867E1F
analogous
#1F5A86 #1F2786 #4B1F86
triadic
#1F2786 #861F27 #27861F
tetradic
#1F2786 #861F5A #867E1F #1F864B
square
#1F2786 #861F5A #867E1F #1F864B
split-complementary
#1F2786 #864B1F #5A861F
monochromatic
#080A23 #141954 #1F2786 #2A35B8 #4A55D5

Accessibility & contrast

On white

12.41
#1F2786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1F2786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2786
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2786#FFFFFF#000000##FFFFFF
##1F27861.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2786;
/* rgb */ color: rgb(31, 39, 134);
/* oklch */ color: oklch(33.9% 0.156 271.1);
Tailwind
colors: {
  custom: {
    50: '#6c61aa',
    500: '#1f2786',
    950: '#000000',
  },
}
SCSS
$custom: #1f2786;
$custom-light: #6c61aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2786",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 134
  },
  "hsl": {
    "h": 235.34,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33886,
    "c": 0.15567,
    "h": 271.1
  },
  "luminance": 0.03464
}

Semantic roles & 50–950 ramp

primary
#1F2786
secondary
#B8AF49
accent
#D942E5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2786

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

Preview Lab → · Contrast checker → · Palette generator →

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