#1F3C99#1F3C99

#1F3C99 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.7% C 0.156 H 266.0°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#1F3C99
RGBrgb(31, 60, 153)
HSLhsl(226, 66%, 36%)
HSVhsv(226, 80%, 60%)
CMYKcmyk(79.7%, 60.8%, 0%, 40%)
CIE-LABlab(28.96, 24.68, -53.83)
CIE-LCHlch(28.96, 59.21, 294.63°)
OKLaboklab(39.68% -0.0107 -0.1556)
OKLCHoklch(39.68% 0.156 266)
XYZxyz(7.9287, 5.8220, 30.8367)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3C99 #997C1F
analogous
#1F7999 #1F3C99 #3F1F99
triadic
#1F3C99 #991F3C #3C991F
tetradic
#1F3C99 #991F79 #997C1F #1F993F
square
#1F3C99 #991F79 #997C1F #1F993F
split-complementary
#1F3C99 #993F1F #79991F
monochromatic
#0A1433 #152866 #1F3C99 #2950CC #5676DD

Accessibility & contrast

On white

9.70
#1F3C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#1F3C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3C99
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3C99#FFFFFF#000000##FFFFFF
##1F3C991.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9C
Deuteranopia (green-blind)
#003F97
Tritanopia (blue-blind)
#005464
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f3c99;
/* rgb */ color: rgb(31, 60, 153);
/* oklch */ color: oklch(39.7% 0.156 266.0);
Tailwind
colors: {
  custom: {
    50: '#6f71b8',
    500: '#1f3c99',
    950: '#000000',
  },
}
SCSS
$custom: #1f3c99;
$custom-light: #6f71b8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3c99",
  "rgb": {
    "r": 31,
    "g": 60,
    "b": 153
  },
  "hsl": {
    "h": 225.738,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39684,
    "c": 0.15594,
    "h": 266
  },
  "luminance": 0.05823
}

Semantic roles & 50–950 ramp

primary
#1F3C99
secondary
#C0A654
accent
#C13FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #1F3C99

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

Preview Lab → · Contrast checker → · Palette generator →

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