#1F4A98#1F4A98

#1F4A98 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 42.6% C 0.137 H 261.1°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#1F4A98
RGBrgb(31, 74, 152)
HSLhsl(219, 66%, 36%)
HSVhsv(219, 80%, 60%)
CMYKcmyk(79.6%, 51.3%, 0%, 40.4%)
CIE-LABlab(32.82, 14.72, -46.95)
CIE-LCHlch(32.82, 49.20, 287.41°)
OKLaboklab(42.58% -0.0211 -0.1351)
OKLCHoklch(42.58% 0.137 261.1)
XYZxyz(8.6793, 7.4549, 30.6812)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4A98 #986D1F
analogous
#1F8698 #1F4A98 #311F98
triadic
#1F4A98 #981F4A #4A981F
tetradic
#1F4A98 #981F86 #986D1F #1F9831
square
#1F4A98 #981F86 #986D1F #1F9831
split-complementary
#1F4A98 #98311F #86981F
monochromatic
#0A1932 #153165 #1F4A98 #2963CB #5585DC

Accessibility & contrast

On white

8.43
#1F4A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#1F4A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4A98
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4A98#FFFFFF#000000##FFFFFF
##1F4A981.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19539B
Deuteranopia (green-blind)
#004896
Tritanopia (blue-blind)
#005D6A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f4a98;
/* rgb */ color: rgb(31, 74, 152);
/* oklch */ color: oklch(42.6% 0.137 261.1);
Tailwind
colors: {
  custom: {
    50: '#6e7bb7',
    500: '#1f4a98',
    950: '#000000',
  },
}
SCSS
$custom: #1f4a98;
$custom-light: #6e7bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4a98",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 152
  },
  "hsl": {
    "h": 218.678,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.42577,
    "c": 0.13673,
    "h": 261.1
  },
  "luminance": 0.07456
}

Semantic roles & 50–950 ramp

primary
#1F4A98
secondary
#C09953
accent
#AD3FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4A98

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

Preview Lab → · Contrast checker → · Palette generator →

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