#1F3C96#1F3C96

#1F3C96 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.4% C 0.152 H 265.9°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#1F3C96
RGBrgb(31, 60, 150)
HSLhsl(225, 66%, 35%)
HSVhsv(225, 79%, 59%)
CMYKcmyk(79.3%, 60%, 0%, 41.2%)
CIE-LABlab(28.71, 23.50, -52.41)
CIE-LCHlch(28.71, 57.43, 294.15°)
OKLaboklab(39.42% -0.0108 -0.1514)
OKLCHoklch(39.42% 0.152 265.9)
XYZxyz(7.6840, 5.7242, 29.5481)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3C96 #96791F
analogous
#1F7796 #1F3C96 #3D1F96
triadic
#1F3C96 #961F3C #3C961F
tetradic
#1F3C96 #961F77 #96791F #1F963D
square
#1F3C96 #961F77 #96791F #1F963D
split-complementary
#1F3C96 #963D1F #77961F
monochromatic
#0A1331 #152863 #1F3C96 #2950C9 #5475DC

Accessibility & contrast

On white

9.79
#1F3C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#1F3C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3C96
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3C96#FFFFFF#000000##FFFFFF
##1F3C961.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f3c96;
/* rgb */ color: rgb(31, 60, 150);
/* oklch */ color: oklch(39.4% 0.152 265.9);
Tailwind
colors: {
  custom: {
    50: '#6f71b6',
    500: '#1f3c96',
    950: '#000000',
  },
}
SCSS
$custom: #1f3c96;
$custom-light: #6f71b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3c96",
  "rgb": {
    "r": 31,
    "g": 60,
    "b": 150
  },
  "hsl": {
    "h": 225.378,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39416,
    "c": 0.15179,
    "h": 265.9
  },
  "luminance": 0.05725
}

Semantic roles & 50–950 ramp

primary
#1F3C96
secondary
#BFA452
accent
#BF3FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1F3C96

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

Preview Lab → · Contrast checker → · Palette generator →

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