#1F2D86#1F2D86

#1F2D86 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.0% C 0.148 H 269.8°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#1F2D86
RGBrgb(31, 45, 134)
HSLhsl(232, 62%, 32%)
HSVhsv(232, 77%, 53%)
CMYKcmyk(76.9%, 66.4%, 0%, 47.5%)
CIE-LABlab(23.30, 27.51, -51.34)
CIE-LCHlch(23.30, 58.25, 298.18°)
OKLaboklab(34.97% -0.0006 -0.1485)
OKLCHoklch(34.97% 0.148 269.8)
XYZxyz(5.8051, 3.8887, 22.9943)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D86 #86781F
analogous
#1F6086 #1F2D86 #451F86
triadic
#1F2D86 #861F2D #2D861F
tetradic
#1F2D86 #861F60 #86781F #1F8645
square
#1F2D86 #861F60 #86781F #1F8645
split-complementary
#1F2D86 #86451F #60861F
monochromatic
#080C23 #141C54 #1F2D86 #2A3EB8 #4A5DD5

Accessibility & contrast

On white

11.81
#1F2D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1F2D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D86
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D86#FFFFFF#000000##FFFFFF
##1F2D861.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2d86;
/* rgb */ color: rgb(31, 45, 134);
/* oklch */ color: oklch(35.0% 0.148 269.8);
Tailwind
colors: {
  custom: {
    50: '#6c66aa',
    500: '#1f2d86',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d86;
$custom-light: #6c66aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d86",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 134
  },
  "hsl": {
    "h": 231.845,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34972,
    "c": 0.14846,
    "h": 269.8
  },
  "luminance": 0.03889
}

Semantic roles & 50–950 ramp

primary
#1F2D86
secondary
#B8A949
accent
#CF42E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #1F2D86

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

Preview Lab → · Contrast checker → · Palette generator →

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