#1F2886#1F2886

#1F2886 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.154 H 270.9°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#1F2886
RGBrgb(31, 40, 134)
HSLhsl(235, 62%, 32%)
HSVhsv(235, 77%, 53%)
CMYKcmyk(76.9%, 70.1%, 0%, 47.5%)
CIE-LABlab(22.05, 30.84, -53.39)
CIE-LCHlch(22.05, 61.66, 300.01°)
OKLaboklab(34.06% 0.0025 -0.1545)
OKLCHoklch(34.06% 0.155 270.9)
XYZxyz(5.6255, 3.5295, 22.9344)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2886 #867D1F
analogous
#1F5C86 #1F2886 #491F86
triadic
#1F2886 #861F28 #28861F
tetradic
#1F2886 #861F5C #867D1F #1F8649
square
#1F2886 #861F5C #867D1F #1F8649
split-complementary
#1F2886 #86491F #5C861F
monochromatic
#080A23 #141954 #1F2886 #2A37B8 #4A56D5

Accessibility & contrast

On white

12.31
#1F2886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1F2886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2886
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2886#FFFFFF#000000##FFFFFF
##1F28861.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A89
Deuteranopia (green-blind)
#003084
Tritanopia (blue-blind)
#004253
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2886;
/* rgb */ color: rgb(31, 40, 134);
/* oklch */ color: oklch(34.1% 0.154 270.9);
Tailwind
colors: {
  custom: {
    50: '#6c62aa',
    500: '#1f2886',
    950: '#000000',
  },
}
SCSS
$custom: #1f2886;
$custom-light: #6c62aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2886",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 134
  },
  "hsl": {
    "h": 234.757,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34061,
    "c": 0.1545,
    "h": 270.9
  },
  "luminance": 0.0353
}

Semantic roles & 50–950 ramp

primary
#1F2886
secondary
#B8AE49
accent
#D742E5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2886

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

Preview Lab → · Contrast checker → · Palette generator →

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