#1F4B98#1F4B98

#1F4B98 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 42.8% C 0.135 H 260.7°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#1F4B98
RGBrgb(31, 75, 152)
HSLhsl(218, 66%, 36%)
HSVhsv(218, 80%, 60%)
CMYKcmyk(79.6%, 50.7%, 0%, 40.4%)
CIE-LABlab(33.11, 14.04, -46.47)
CIE-LCHlch(33.11, 48.55, 286.82°)
OKLaboklab(42.8% -0.0219 -0.1337)
OKLCHoklch(42.8% 0.135 260.7)
XYZxyz(8.7466, 7.5894, 30.7036)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4B98 #986C1F
analogous
#1F8798 #1F4B98 #301F98
triadic
#1F4B98 #981F4B #4B981F
tetradic
#1F4B98 #981F87 #986C1F #1F9830
square
#1F4B98 #981F87 #986C1F #1F9830
split-complementary
#1F4B98 #98301F #87981F
monochromatic
#0A1932 #153265 #1F4B98 #2964CB #5586DC

Accessibility & contrast

On white

8.34
#1F4B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#1F4B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4B98
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4B98#FFFFFF#000000##FFFFFF
##1F4B981.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C549B
Deuteranopia (green-blind)
#004996
Tritanopia (blue-blind)
#005E6A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f4b98;
/* rgb */ color: rgb(31, 75, 152);
/* oklch */ color: oklch(42.8% 0.135 260.7);
Tailwind
colors: {
  custom: {
    50: '#6e7cb7',
    500: '#1f4b98',
    950: '#000000',
  },
}
SCSS
$custom: #1f4b98;
$custom-light: #6e7cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4b98",
  "rgb": {
    "r": 31,
    "g": 75,
    "b": 152
  },
  "hsl": {
    "h": 218.182,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.42801,
    "c": 0.13547,
    "h": 260.7
  },
  "luminance": 0.0759
}

Semantic roles & 50–950 ramp

primary
#1F4B98
secondary
#C09853
accent
#AB3FE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4B98

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

Preview Lab → · Contrast checker → · Palette generator →

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