#1F4098#1F4098

#1F4098 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.4% C 0.149 H 264.8°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#1F4098
RGBrgb(31, 64, 152)
HSLhsl(224, 66%, 36%)
HSVhsv(224, 80%, 60%)
CMYKcmyk(79.6%, 57.9%, 0%, 40.4%)
CIE-LABlab(29.97, 21.55, -51.57)
CIE-LCHlch(29.97, 55.89, 292.68°)
OKLaboklab(40.42% -0.0135 -0.1489)
OKLCHoklch(40.42% 0.149 264.8)
XYZxyz(8.0640, 6.2242, 30.4761)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4098 #98771F
analogous
#1F7C98 #1F4098 #3A1F98
triadic
#1F4098 #981F40 #40981F
tetradic
#1F4098 #981F7C #98771F #1F983A
square
#1F4098 #981F7C #98771F #1F983A
split-complementary
#1F4098 #983A1F #7C981F
monochromatic
#0A1532 #152B65 #1F4098 #2955CB #557ADC

Accessibility & contrast

On white

9.35
#1F4098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#1F4098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4098
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4098#FFFFFF#000000##FFFFFF
##1F40981.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f4098;
/* rgb */ color: rgb(31, 64, 152);
/* oklch */ color: oklch(40.4% 0.149 264.8);
Tailwind
colors: {
  custom: {
    50: '#6f74b7',
    500: '#1f4098',
    950: '#000000',
  },
}
SCSS
$custom: #1f4098;
$custom-light: #6f74b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4098",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 152
  },
  "hsl": {
    "h": 223.636,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40416,
    "c": 0.14948,
    "h": 264.8
  },
  "luminance": 0.06225
}

Semantic roles & 50–950 ramp

primary
#1F4098
secondary
#C0A253
accent
#BB3FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #1F4098

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

Preview Lab → · Contrast checker → · Palette generator →

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