#1F3C98#1F3C98

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

Color values

HEX#1F3C98
RGBrgb(31, 60, 152)
HSLhsl(226, 66%, 36%)
HSVhsv(226, 80%, 60%)
CMYKcmyk(79.6%, 60.5%, 0%, 40.4%)
CIE-LABlab(28.87, 24.29, -53.35)
CIE-LCHlch(28.87, 58.62, 294.48°)
OKLaboklab(39.59% -0.0108 -0.1542)
OKLCHoklch(39.59% 0.155 266)
XYZxyz(7.8464, 5.7891, 30.4036)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3C98 #987B1F
analogous
#1F7898 #1F3C98 #3E1F98
triadic
#1F3C98 #981F3C #3C981F
tetradic
#1F3C98 #981F78 #987B1F #1F983E
square
#1F3C98 #981F78 #987B1F #1F983E
split-complementary
#1F3C98 #983E1F #78981F
monochromatic
#0A1432 #152865 #1F3C98 #2950CB #5575DC

Accessibility & contrast

On white

9.73
#1F3C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F3C98
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3C98#FFFFFF#000000##FFFFFF
##1F3C981.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9B
Deuteranopia (green-blind)
#003F96
Tritanopia (blue-blind)
#005364
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f3c98;
/* rgb */ color: rgb(31, 60, 152);
/* oklch */ color: oklch(39.6% 0.155 266.0);
Tailwind
colors: {
  custom: {
    50: '#6f71b7',
    500: '#1f3c98',
    950: '#000000',
  },
}
SCSS
$custom: #1f3c98;
$custom-light: #6f71b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3c98",
  "rgb": {
    "r": 31,
    "g": 60,
    "b": 152
  },
  "hsl": {
    "h": 225.62,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39594,
    "c": 0.15456,
    "h": 266
  },
  "luminance": 0.0579
}

Semantic roles & 50–950 ramp

primary
#1F3C98
secondary
#C0A653
accent
#C03FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #1F3C98

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

Preview Lab → · Contrast checker → · Palette generator →

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