#1F3F98#1F3F98

#1F3F98 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.2% C 0.151 H 265.1°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#1F3F98
RGBrgb(31, 63, 152)
HSLhsl(224, 66%, 36%)
HSVhsv(224, 80%, 60%)
CMYKcmyk(79.6%, 58.6%, 0%, 40.4%)
CIE-LABlab(29.69, 22.24, -52.02)
CIE-LCHlch(29.69, 56.57, 293.15°)
OKLaboklab(40.21% -0.0128 -0.1502)
OKLCHoklch(40.21% 0.151 265.1)
XYZxyz(8.0081, 6.1124, 30.4574)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3F98 #98781F
analogous
#1F7B98 #1F3F98 #3B1F98
triadic
#1F3F98 #981F3F #3F981F
tetradic
#1F3F98 #981F7B #98781F #1F983B
square
#1F3F98 #981F7B #98781F #1F983B
split-complementary
#1F3F98 #983B1F #7B981F
monochromatic
#0A1532 #152A65 #1F3F98 #2954CB #5579DC

Accessibility & contrast

On white

9.45
#1F3F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#1F3F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3F98
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3F98#FFFFFF#000000##FFFFFF
##1F3F981.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f3f98;
/* rgb */ color: rgb(31, 63, 152);
/* oklch */ color: oklch(40.2% 0.151 265.1);
Tailwind
colors: {
  custom: {
    50: '#6f73b7',
    500: '#1f3f98',
    950: '#000000',
  },
}
SCSS
$custom: #1f3f98;
$custom-light: #6f73b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3f98",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 152
  },
  "hsl": {
    "h": 224.132,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40208,
    "c": 0.15076,
    "h": 265.1
  },
  "luminance": 0.06113
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F3F98

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

Preview Lab → · Contrast checker → · Palette generator →

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