#1F4598#1F4598

#1F4598 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.5% C 0.143 H 263.1°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#1F4598
RGBrgb(31, 69, 152)
HSLhsl(221, 66%, 36%)
HSVhsv(221, 80%, 60%)
CMYKcmyk(79.6%, 54.6%, 0%, 40.4%)
CIE-LABlab(31.38, 18.13, -49.28)
CIE-LCHlch(31.38, 52.51, 290.20°)
OKLaboklab(41.48% -0.0172 -0.1421)
OKLCHoklch(41.48% 0.143 263.1)
XYZxyz(8.3587, 6.8136, 30.5743)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4598 #98721F
analogous
#1F8198 #1F4598 #351F98
triadic
#1F4598 #981F45 #45981F
tetradic
#1F4598 #981F81 #98721F #1F9835
square
#1F4598 #981F81 #98721F #1F9835
split-complementary
#1F4598 #98351F #81981F
monochromatic
#0A1732 #152E65 #1F4598 #295CCB #5580DC

Accessibility & contrast

On white

8.89
#1F4598 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#1F4598 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4598
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4598#FFFFFF#000000##FFFFFF
##1F45981.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01509B
Deuteranopia (green-blind)
#004596
Tritanopia (blue-blind)
#005967
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f4598;
/* rgb */ color: rgb(31, 69, 152);
/* oklch */ color: oklch(41.5% 0.143 263.1);
Tailwind
colors: {
  custom: {
    50: '#6f78b7',
    500: '#1f4598',
    950: '#000000',
  },
}
SCSS
$custom: #1f4598;
$custom-light: #6f78b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4598",
  "rgb": {
    "r": 31,
    "g": 69,
    "b": 152
  },
  "hsl": {
    "h": 221.157,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.41479,
    "c": 0.1431,
    "h": 263.1
  },
  "luminance": 0.06815
}

Semantic roles & 50–950 ramp

primary
#1F4598
secondary
#C09E53
accent
#B43FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4598

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

Preview Lab → · Contrast checker → · Palette generator →

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