#1F2B86#1F2B86

#1F2B86 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.151 H 270.3°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#1F2B86
RGBrgb(31, 43, 134)
HSLhsl(233, 62%, 32%)
HSVhsv(233, 77%, 53%)
CMYKcmyk(76.9%, 67.9%, 0%, 47.5%)
CIE-LABlab(22.79, 28.86, -52.18)
CIE-LCHlch(22.79, 59.62, 298.94°)
OKLaboklab(34.6% 0.0007 -0.1509)
OKLCHoklch(34.6% 0.151 270.3)
XYZxyz(5.7306, 3.7397, 22.9695)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B86 #867A1F
analogous
#1F5E86 #1F2B86 #471F86
triadic
#1F2B86 #861F2B #2B861F
tetradic
#1F2B86 #861F5E #867A1F #1F8647
square
#1F2B86 #861F5E #867A1F #1F8647
split-complementary
#1F2B86 #86471F #5E861F
monochromatic
#080B23 #141B54 #1F2B86 #2A3BB8 #4A5AD5

Accessibility & contrast

On white

12.01
#1F2B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1F2B86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B86
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B86#FFFFFF#000000##FFFFFF
##1F2B861.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003284
Tritanopia (blue-blind)
#004354
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2b86;
/* rgb */ color: rgb(31, 43, 134);
/* oklch */ color: oklch(34.6% 0.151 270.3);
Tailwind
colors: {
  custom: {
    50: '#6c64aa',
    500: '#1f2b86',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b86;
$custom-light: #6c64aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b86",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 134
  },
  "hsl": {
    "h": 233.01,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34599,
    "c": 0.15092,
    "h": 270.3
  },
  "luminance": 0.0374
}

Semantic roles & 50–950 ramp

primary
#1F2B86
secondary
#B8AB49
accent
#D242E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #1F2B86

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

Preview Lab → · Contrast checker → · Palette generator →

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