#1F2186#1F2186

#1F2186 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.162 H 272.2°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#1F2186
RGBrgb(31, 33, 134)
HSLhsl(239, 62%, 32%)
HSVhsv(239, 77%, 53%)
CMYKcmyk(76.9%, 75.4%, 0%, 47.5%)
CIE-LABlab(20.44, 35.28, -56.05)
CIE-LCHlch(20.44, 66.23, 302.19°)
OKLaboklab(32.9% 0.0063 -0.1622)
OKLCHoklch(32.9% 0.162 272.2)
XYZxyz(5.4106, 3.0997, 22.8628)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2186 #86841F
analogous
#1F5586 #1F2186 #511F86
triadic
#1F2186 #861F21 #21861F
tetradic
#1F2186 #861F55 #86841F #1F8651
square
#1F2186 #861F55 #86841F #1F8651
split-complementary
#1F2186 #86511F #55861F
monochromatic
#080923 #141554 #1F2186 #2A2DB8 #4A4DD5

Accessibility & contrast

On white

12.96
#1F2186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1F2186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2186
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2186#FFFFFF#000000##FFFFFF
##1F21861.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#002C84
Tritanopia (blue-blind)
#003E51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f2186;
/* rgb */ color: rgb(31, 33, 134);
/* oklch */ color: oklch(32.9% 0.162 272.2);
Tailwind
colors: {
  custom: {
    50: '#6d5daa',
    500: '#1f2186',
    950: '#000000',
  },
}
SCSS
$custom: #1f2186;
$custom-light: #6d5daa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2186",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 238.835,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32902,
    "c": 0.16233,
    "h": 272.2
  },
  "luminance": 0.031
}

Semantic roles & 50–950 ramp

primary
#1F2186
secondary
#B8B649
accent
#E242E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F2186

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

Preview Lab → · Contrast checker → · Palette generator →

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