#1F4298#1F4298

#1F4298 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 40.8% C 0.147 H 264.2°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#1F4298
RGBrgb(31, 66, 152)
HSLhsl(223, 66%, 36%)
HSVhsv(223, 80%, 60%)
CMYKcmyk(79.6%, 56.6%, 0%, 40.4%)
CIE-LABlab(30.53, 20.18, -50.66)
CIE-LCHlch(30.53, 54.53, 291.72°)
OKLaboklab(40.84% -0.015 -0.1462)
OKLCHoklch(40.84% 0.147 264.2)
XYZxyz(8.1788, 6.4538, 30.5143)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4298 #98751F
analogous
#1F7E98 #1F4298 #391F98
triadic
#1F4298 #981F42 #42981F
tetradic
#1F4298 #981F7E #98751F #1F9839
square
#1F4298 #981F7E #98751F #1F9839
split-complementary
#1F4298 #98391F #7E981F
monochromatic
#0A1632 #152C65 #1F4298 #2958CB #557CDC

Accessibility & contrast

On white

9.17
#1F4298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#1F4298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4298
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4298#FFFFFF#000000##FFFFFF
##1F42981.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9B
Deuteranopia (green-blind)
#004396
Tritanopia (blue-blind)
#005766
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f4298;
/* rgb */ color: rgb(31, 66, 152);
/* oklch */ color: oklch(40.8% 0.147 264.2);
Tailwind
colors: {
  custom: {
    50: '#6f75b7',
    500: '#1f4298',
    950: '#000000',
  },
}
SCSS
$custom: #1f4298;
$custom-light: #6f75b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4298",
  "rgb": {
    "r": 31,
    "g": 66,
    "b": 152
  },
  "hsl": {
    "h": 222.645,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40837,
    "c": 0.14693,
    "h": 264.2
  },
  "luminance": 0.06455
}

Semantic roles & 50–950 ramp

primary
#1F4298
secondary
#C0A053
accent
#B83FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4298

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

Preview Lab → · Contrast checker → · Palette generator →

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