#1F4498#1F4498

#1F4498 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.3% C 0.144 H 263.5°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#1F4498
RGBrgb(31, 68, 152)
HSLhsl(222, 66%, 36%)
HSVhsv(222, 80%, 60%)
CMYKcmyk(79.6%, 55.3%, 0%, 40.4%)
CIE-LABlab(31.09, 18.82, -49.74)
CIE-LCHlch(31.09, 53.18, 290.72°)
OKLaboklab(41.26% -0.0164 -0.1434)
OKLCHoklch(41.26% 0.144 263.5)
XYZxyz(8.2977, 6.6916, 30.5540)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4498 #98731F
analogous
#1F8098 #1F4498 #361F98
triadic
#1F4498 #981F44 #44981F
tetradic
#1F4498 #981F80 #98731F #1F9836
square
#1F4498 #981F80 #98731F #1F9836
split-complementary
#1F4498 #98361F #80981F
monochromatic
#0A1732 #152D65 #1F4498 #295BCB #557EDC

Accessibility & contrast

On white

8.98
#1F4498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#1F4498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4498
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4498#FFFFFF#000000##FFFFFF
##1F44981.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9B
Deuteranopia (green-blind)
#004496
Tritanopia (blue-blind)
#005967
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1f4498;
/* rgb */ color: rgb(31, 68, 152);
/* oklch */ color: oklch(41.3% 0.144 263.5);
Tailwind
colors: {
  custom: {
    50: '#6f77b7',
    500: '#1f4498',
    950: '#000000',
  },
}
SCSS
$custom: #1f4498;
$custom-light: #6f77b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4498",
  "rgb": {
    "r": 31,
    "g": 68,
    "b": 152
  },
  "hsl": {
    "h": 221.653,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.41264,
    "c": 0.14437,
    "h": 263.5
  },
  "luminance": 0.06693
}

Semantic roles & 50–950 ramp

primary
#1F4498
secondary
#C09F53
accent
#B53FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4498

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

Preview Lab → · Contrast checker → · Palette generator →

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