#1F3A96#1F3A96

#1F3A96 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.0% C 0.154 H 266.5°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#1F3A96
RGBrgb(31, 58, 150)
HSLhsl(226, 66%, 35%)
HSVhsv(226, 79%, 59%)
CMYKcmyk(79.3%, 61.3%, 0%, 41.2%)
CIE-LABlab(28.16, 24.87, -53.29)
CIE-LCHlch(28.16, 58.81, 295.02°)
OKLaboklab(39.01% -0.0095 -0.154)
OKLCHoklch(39.01% 0.154 266.5)
XYZxyz(7.5812, 5.5186, 29.5139)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3A96 #967B1F
analogous
#1F7596 #1F3A96 #401F96
triadic
#1F3A96 #961F3A #3A961F
tetradic
#1F3A96 #961F75 #967B1F #1F9640
square
#1F3A96 #961F75 #967B1F #1F9640
split-complementary
#1F3A96 #96401F #75961F
monochromatic
#0A1331 #152663 #1F3A96 #294EC9 #5473DC

Accessibility & contrast

On white

9.98
#1F3A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#1F3A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3A96
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3A96#FFFFFF#000000##FFFFFF
##1F3A961.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004899
Deuteranopia (green-blind)
#003D94
Tritanopia (blue-blind)
#005262
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f3a96;
/* rgb */ color: rgb(31, 58, 150);
/* oklch */ color: oklch(39.0% 0.154 266.5);
Tailwind
colors: {
  custom: {
    50: '#6f6fb6',
    500: '#1f3a96',
    950: '#000000',
  },
}
SCSS
$custom: #1f3a96;
$custom-light: #6f6fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3a96",
  "rgb": {
    "r": 31,
    "g": 58,
    "b": 150
  },
  "hsl": {
    "h": 226.387,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39012,
    "c": 0.15432,
    "h": 266.5
  },
  "luminance": 0.05519
}

Semantic roles & 50–950 ramp

primary
#1F3A96
secondary
#BFA652
accent
#C23FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #1F3A96

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

Preview Lab → · Contrast checker → · Palette generator →

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