#1F4F9A#1F4F9A

#1F4F9A is a dark, vivid blue. Relative luminance 0.082; OKLCH L 43.9% C 0.133 H 259.3°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#1F4F9A
RGBrgb(31, 79, 154)
HSLhsl(217, 66%, 36%)
HSVhsv(217, 80%, 60%)
CMYKcmyk(79.9%, 48.7%, 0%, 39.6%)
CIE-LABlab(34.43, 12.14, -45.57)
CIE-LCHlch(34.43, 47.16, 284.92°)
OKLaboklab(43.85% -0.0248 -0.1309)
OKLCHoklch(43.85% 0.133 259.3)
XYZxyz(9.1917, 8.2153, 31.6669)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F9A #9A6A1F
analogous
#1F8D9A #1F4F9A #2D1F9A
triadic
#1F4F9A #9A1F4F #4F9A1F
tetradic
#1F4F9A #9A1F8D #9A6A1F #1F9A2D
square
#1F4F9A #9A1F8D #9A6A1F #1F9A2D
split-complementary
#1F4F9A #9A2D1F #8D9A1F
monochromatic
#0A1B34 #153567 #1F4F9A #2969CD #568BDD

Accessibility & contrast

On white

7.94
#1F4F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#1F4F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4F9A
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F9A#FFFFFF#000000##FFFFFF
##1F4F9A1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25579D
Deuteranopia (green-blind)
#004C99
Tritanopia (blue-blind)
#00616D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1f4f9a;
/* rgb */ color: rgb(31, 79, 154);
/* oklch */ color: oklch(43.9% 0.133 259.3);
Tailwind
colors: {
  custom: {
    50: '#6f7fb8',
    500: '#1f4f9a',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f9a;
$custom-light: #6f7fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f9a",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 154
  },
  "hsl": {
    "h": 216.585,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.43853,
    "c": 0.13327,
    "h": 259.3
  },
  "luminance": 0.08216
}

Semantic roles & 50–950 ramp

primary
#1F4F9A
secondary
#C19654
accent
#A73EE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #1F4F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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