#1F2E86#1F2E86

#1F2E86 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.2% C 0.147 H 269.5°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#1F2E86
RGBrgb(31, 46, 134)
HSLhsl(231, 62%, 32%)
HSVhsv(231, 77%, 53%)
CMYKcmyk(76.9%, 65.7%, 0%, 47.5%)
CIE-LABlab(23.56, 26.83, -50.92)
CIE-LCHlch(23.56, 57.56, 297.79°)
OKLaboklab(35.16% -0.0013 -0.1472)
OKLCHoklch(35.16% 0.147 269.5)
XYZxyz(5.8437, 3.9659, 23.0072)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E86 #86771F
analogous
#1F6286 #1F2E86 #431F86
triadic
#1F2E86 #861F2E #2E861F
tetradic
#1F2E86 #861F62 #86771F #1F8643
square
#1F2E86 #861F62 #86771F #1F8643
split-complementary
#1F2E86 #86431F #62861F
monochromatic
#080C23 #141D54 #1F2E86 #2A3FB8 #4A5ED5

Accessibility & contrast

On white

11.71
#1F2E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1F2E86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2E86
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E86#FFFFFF#000000##FFFFFF
##1F2E861.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D89
Deuteranopia (green-blind)
#003384
Tritanopia (blue-blind)
#004555
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f2e86;
/* rgb */ color: rgb(31, 46, 134);
/* oklch */ color: oklch(35.2% 0.147 269.5);
Tailwind
colors: {
  custom: {
    50: '#6c66aa',
    500: '#1f2e86',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e86;
$custom-light: #6c66aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e86",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 134
  },
  "hsl": {
    "h": 231.262,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35161,
    "c": 0.14723,
    "h": 269.5
  },
  "luminance": 0.03967
}

Semantic roles & 50–950 ramp

primary
#1F2E86
secondary
#B8A849
accent
#CE42E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F2E86

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

Preview Lab → · Contrast checker → · Palette generator →

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