#1F4F9E#1F4F9E

#1F4F9E is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.2% C 0.139 H 260.0°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#1F4F9E
RGBrgb(31, 79, 158)
HSLhsl(217, 67%, 37%)
HSVhsv(217, 80%, 62%)
CMYKcmyk(80.4%, 50%, 0%, 38%)
CIE-LABlab(34.70, 13.74, -47.53)
CIE-LCHlch(34.70, 49.48, 286.12°)
OKLaboklab(44.15% -0.0242 -0.1367)
OKLCHoklch(44.15% 0.139 260)
XYZxyz(9.5304, 8.3508, 33.4507)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F9E #9E6E1F
analogous
#1F8F9E #1F4F9E #2F1F9E
triadic
#1F4F9E #9E1F4F #4F9E1F
tetradic
#1F4F9E #9E1F8F #9E6E1F #1F9E2F
square
#1F4F9E #9E1F8F #9E6E1F #1F9E2F
split-complementary
#1F4F9E #9E2F1F #8F9E1F
monochromatic
#0B1C38 #15356B #1F4F9E #2969D1 #598BDE

Accessibility & contrast

On white

7.86
#1F4F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#1F4F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4F9E
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F9E#FFFFFF#000000##FFFFFF
##1F4F9E1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2058A1
Deuteranopia (green-blind)
#004C9C
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f4f9e;
/* rgb */ color: rgb(31, 79, 158);
/* oklch */ color: oklch(44.2% 0.139 260.0);
Tailwind
colors: {
  custom: {
    50: '#707fbb',
    500: '#1f4f9e',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f9e;
$custom-light: #707fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f9e",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 158
  },
  "hsl": {
    "h": 217.323,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.44153,
    "c": 0.13885,
    "h": 260
  },
  "luminance": 0.08352
}

Semantic roles & 50–950 ramp

primary
#1F4F9E
secondary
#C29A56
accent
#A93EEA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F4F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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