#1F4198#1F4198

#1F4198 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.6% C 0.148 H 264.5°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#1F4198
RGBrgb(31, 65, 152)
HSLhsl(223, 66%, 36%)
HSVhsv(223, 80%, 60%)
CMYKcmyk(79.6%, 57.2%, 0%, 40.4%)
CIE-LABlab(30.25, 20.87, -51.11)
CIE-LCHlch(30.25, 55.21, 292.21°)
OKLaboklab(40.63% -0.0142 -0.1475)
OKLCHoklch(40.63% 0.148 264.5)
XYZxyz(8.1209, 6.3380, 30.4950)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4198 #98761F
analogous
#1F7D98 #1F4198 #391F98
triadic
#1F4198 #981F41 #41981F
tetradic
#1F4198 #981F7D #98761F #1F9839
square
#1F4198 #981F7D #98761F #1F9839
split-complementary
#1F4198 #98391F #7D981F
monochromatic
#0A1632 #152B65 #1F4198 #2957CB #557BDC

Accessibility & contrast

On white

9.26
#1F4198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#1F4198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4198
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4198#FFFFFF#000000##FFFFFF
##1F41981.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#005766
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f4198;
/* rgb */ color: rgb(31, 65, 152);
/* oklch */ color: oklch(40.6% 0.148 264.5);
Tailwind
colors: {
  custom: {
    50: '#6f75b7',
    500: '#1f4198',
    950: '#000000',
  },
}
SCSS
$custom: #1f4198;
$custom-light: #6f75b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4198",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 152
  },
  "hsl": {
    "h": 223.14,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40626,
    "c": 0.14821,
    "h": 264.5
  },
  "luminance": 0.06339
}

Semantic roles & 50–950 ramp

primary
#1F4198
secondary
#C0A153
accent
#B93FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4198

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

Preview Lab → · Contrast checker → · Palette generator →

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