#1F4581#1F4581

#1F4581 is a dark, moderate blue. Relative luminance 0.061; OKLCH L 39.7% C 0.110 H 259.3°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#1F4581
RGBrgb(31, 69, 129)
HSLhsl(217, 61%, 31%)
HSVhsv(217, 76%, 51%)
CMYKcmyk(76%, 46.5%, 0%, 49.4%)
CIE-LABlab(29.74, 8.91, -37.77)
CIE-LCHlch(29.74, 38.81, 283.27°)
OKLaboklab(39.71% -0.0205 -0.1082)
OKLCHoklch(39.71% 0.11 259.3)
XYZxyz(6.6542, 6.1318, 21.5975)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4581 #815B1F
analogous
#1F7681 #1F4581 #2A1F81
triadic
#1F4581 #811F45 #45811F
tetradic
#1F4581 #811F76 #815B1F #1F812A
square
#1F4581 #811F76 #815B1F #1F812A
split-complementary
#1F4581 #812A1F #76811F
monochromatic
#07101E #132B50 #1F4581 #2B5FB2 #477ED3

Accessibility & contrast

On white

9.43
#1F4581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#1F4581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4581
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4581#FFFFFF#000000##FFFFFF
##1F45811.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264B83
Deuteranopia (green-blind)
#124280
Tritanopia (blue-blind)
#00535C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f4581;
/* rgb */ color: rgb(31, 69, 129);
/* oklch */ color: oklch(39.7% 0.110 259.3);
Tailwind
colors: {
  custom: {
    50: '#6978a6',
    500: '#1f4581',
    950: '#000000',
  },
}
SCSS
$custom: #1f4581;
$custom-light: #6978a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4581",
  "rgb": {
    "r": 31,
    "g": 69,
    "b": 129
  },
  "hsl": {
    "h": 216.735,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.39706,
    "c": 0.11013,
    "h": 259.3
  },
  "luminance": 0.06133
}

Semantic roles & 50–950 ramp

primary
#1F4581
secondary
#B48A48
accent
#A643E4
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1F4581

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

Preview Lab → · Contrast checker → · Palette generator →

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