#1F3A98#1F3A98

#1F3A98 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.2% C 0.157 H 266.5°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#1F3A98
RGBrgb(31, 58, 152)
HSLhsl(227, 66%, 36%)
HSVhsv(227, 80%, 60%)
CMYKcmyk(79.6%, 61.8%, 0%, 40.4%)
CIE-LABlab(28.34, 25.65, -54.23)
CIE-LCHlch(28.34, 59.99, 295.31°)
OKLaboklab(39.19% -0.0095 -0.1568)
OKLCHoklch(39.19% 0.157 266.5)
XYZxyz(7.7436, 5.5835, 30.3693)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3A98 #987D1F
analogous
#1F7698 #1F3A98 #411F98
triadic
#1F3A98 #981F3A #3A981F
tetradic
#1F3A98 #981F76 #987D1F #1F9841
square
#1F3A98 #981F76 #987D1F #1F9841
split-complementary
#1F3A98 #98411F #76981F
monochromatic
#0A1332 #152765 #1F3A98 #294DCB #5573DC

Accessibility & contrast

On white

9.92
#1F3A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#1F3A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3A98
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3A98#FFFFFF#000000##FFFFFF
##1F3A981.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#003D96
Tritanopia (blue-blind)
#005263
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f3a98;
/* rgb */ color: rgb(31, 58, 152);
/* oklch */ color: oklch(39.2% 0.157 266.5);
Tailwind
colors: {
  custom: {
    50: '#6f6fb7',
    500: '#1f3a98',
    950: '#000000',
  },
}
SCSS
$custom: #1f3a98;
$custom-light: #6f6fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3a98",
  "rgb": {
    "r": 31,
    "g": 58,
    "b": 152
  },
  "hsl": {
    "h": 226.612,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39194,
    "c": 0.15708,
    "h": 266.5
  },
  "luminance": 0.05584
}

Semantic roles & 50–950 ramp

primary
#1F3A98
secondary
#C0A853
accent
#C33FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #1F3A98

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

Preview Lab → · Contrast checker → · Palette generator →

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