#1F3B96#1F3B96

#1F3B96 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.2% C 0.153 H 266.2°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#1F3B96
RGBrgb(31, 59, 150)
HSLhsl(226, 66%, 35%)
HSVhsv(226, 79%, 59%)
CMYKcmyk(79.3%, 60.7%, 0%, 41.2%)
CIE-LABlab(28.43, 24.19, -52.85)
CIE-LCHlch(28.43, 58.12, 294.59°)
OKLaboklab(39.21% -0.0101 -0.1527)
OKLCHoklch(39.21% 0.153 266.2)
XYZxyz(7.6321, 5.6204, 29.5308)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3B96 #967A1F
analogous
#1F7796 #1F3B96 #3E1F96
triadic
#1F3B96 #961F3B #3B961F
tetradic
#1F3B96 #961F77 #967A1F #1F963E
square
#1F3B96 #961F77 #967A1F #1F963E
split-complementary
#1F3B96 #963E1F #77961F
monochromatic
#0A1331 #152763 #1F3B96 #294FC9 #5474DC

Accessibility & contrast

On white

9.89
#1F3B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#1F3B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3B96
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3B96#FFFFFF#000000##FFFFFF
##1F3B961.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004999
Deuteranopia (green-blind)
#003E94
Tritanopia (blue-blind)
#005262
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f3b96;
/* rgb */ color: rgb(31, 59, 150);
/* oklch */ color: oklch(39.2% 0.153 266.2);
Tailwind
colors: {
  custom: {
    50: '#6f70b6',
    500: '#1f3b96',
    950: '#000000',
  },
}
SCSS
$custom: #1f3b96;
$custom-light: #6f70b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3b96",
  "rgb": {
    "r": 31,
    "g": 59,
    "b": 150
  },
  "hsl": {
    "h": 225.882,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39213,
    "c": 0.15306,
    "h": 266.2
  },
  "luminance": 0.05621
}

Semantic roles & 50–950 ramp

primary
#1F3B96
secondary
#BFA552
accent
#C13FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1F3B96

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

Preview Lab → · Contrast checker → · Palette generator →

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