#1F2986#1F2986

#1F2986 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.153 H 270.7°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#1F2986
RGBrgb(31, 41, 134)
HSLhsl(234, 62%, 32%)
HSVhsv(234, 77%, 53%)
CMYKcmyk(76.9%, 69.4%, 0%, 47.5%)
CIE-LABlab(22.29, 30.18, -52.99)
CIE-LCHlch(22.29, 60.99, 299.67°)
OKLaboklab(34.24% 0.0019 -0.1533)
OKLCHoklch(34.24% 0.153 270.7)
XYZxyz(5.6596, 3.5978, 22.9458)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2986 #867C1F
analogous
#1F5C86 #1F2986 #491F86
triadic
#1F2986 #861F29 #29861F
tetradic
#1F2986 #861F5C #867C1F #1F8649
square
#1F2986 #861F5C #867C1F #1F8649
split-complementary
#1F2986 #86491F #5C861F
monochromatic
#080B23 #141A54 #1F2986 #2A38B8 #4A58D5

Accessibility & contrast

On white

12.21
#1F2986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1F2986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2986
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2986#FFFFFF#000000##FFFFFF
##1F29861.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A89
Deuteranopia (green-blind)
#003084
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2986;
/* rgb */ color: rgb(31, 41, 134);
/* oklch */ color: oklch(34.2% 0.153 270.7);
Tailwind
colors: {
  custom: {
    50: '#6c63aa',
    500: '#1f2986',
    950: '#000000',
  },
}
SCSS
$custom: #1f2986;
$custom-light: #6c63aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2986",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 134
  },
  "hsl": {
    "h": 234.175,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34238,
    "c": 0.15332,
    "h": 270.7
  },
  "luminance": 0.03598
}

Semantic roles & 50–950 ramp

primary
#1F2986
secondary
#B8AD49
accent
#D642E5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2986

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

Preview Lab → · Contrast checker → · Palette generator →

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