#1F2386#1F2386

#1F2386 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.160 H 271.9°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#1F2386
RGBrgb(31, 35, 134)
HSLhsl(238, 62%, 32%)
HSVhsv(238, 77%, 53%)
CMYKcmyk(76.9%, 73.9%, 0%, 47.5%)
CIE-LABlab(20.88, 34.04, -55.32)
CIE-LCHlch(20.88, 64.95, 301.61°)
OKLaboklab(33.22% 0.0053 -0.1601)
OKLCHoklch(33.22% 0.16 271.9)
XYZxyz(5.4677, 3.2140, 22.8818)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2386 #86821F
analogous
#1F5686 #1F2386 #4F1F86
triadic
#1F2386 #861F23 #23861F
tetradic
#1F2386 #861F56 #86821F #1F864F
square
#1F2386 #861F56 #86821F #1F864F
split-complementary
#1F2386 #864F1F #56861F
monochromatic
#080923 #141654 #1F2386 #2A30B8 #4A50D5

Accessibility & contrast

On white

12.78
#1F2386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1F2386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2386
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2386#FFFFFF#000000##FFFFFF
##1F23861.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f2386;
/* rgb */ color: rgb(31, 35, 134);
/* oklch */ color: oklch(33.2% 0.160 271.9);
Tailwind
colors: {
  custom: {
    50: '#6d5faa',
    500: '#1f2386',
    950: '#000000',
  },
}
SCSS
$custom: #1f2386;
$custom-light: #6d5faa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2386",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 134
  },
  "hsl": {
    "h": 237.67,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33218,
    "c": 0.16019,
    "h": 271.9
  },
  "luminance": 0.03215
}

Semantic roles & 50–950 ramp

primary
#1F2386
secondary
#B8B349
accent
#DF42E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F2386

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

Preview Lab → · Contrast checker → · Palette generator →

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