#1F3F99#1F3F99

#1F3F99 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.3% C 0.152 H 265.2°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#1F3F99
RGBrgb(31, 63, 153)
HSLhsl(224, 66%, 36%)
HSVhsv(224, 80%, 60%)
CMYKcmyk(79.7%, 58.8%, 0%, 40%)
CIE-LABlab(29.78, 22.63, -52.49)
CIE-LCHlch(29.78, 57.16, 293.32°)
OKLaboklab(40.29% -0.0128 -0.1516)
OKLCHoklch(40.29% 0.152 265.2)
XYZxyz(8.0903, 6.1453, 30.8906)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3F99 #99791F
analogous
#1F7C99 #1F3F99 #3C1F99
triadic
#1F3F99 #991F3F #3F991F
tetradic
#1F3F99 #991F7C #99791F #1F993C
square
#1F3F99 #991F7C #99791F #1F993C
split-complementary
#1F3F99 #993C1F #7C991F
monochromatic
#0A1533 #152A66 #1F3F99 #2954CC #5679DD

Accessibility & contrast

On white

9.42
#1F3F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#1F3F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3F99
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3F99#FFFFFF#000000##FFFFFF
##1F3F991.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9C
Deuteranopia (green-blind)
#004197
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f3f99;
/* rgb */ color: rgb(31, 63, 153);
/* oklch */ color: oklch(40.3% 0.152 265.2);
Tailwind
colors: {
  custom: {
    50: '#6f73b8',
    500: '#1f3f99',
    950: '#000000',
  },
}
SCSS
$custom: #1f3f99;
$custom-light: #6f73b8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3f99",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 153
  },
  "hsl": {
    "h": 224.262,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40295,
    "c": 0.15215,
    "h": 265.2
  },
  "luminance": 0.06146
}

Semantic roles & 50–950 ramp

primary
#1F3F99
secondary
#C0A454
accent
#BC3FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #1F3F99

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

Preview Lab → · Contrast checker → · Palette generator →

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