#1F4481#1F4481

#1F4481 is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.5% C 0.111 H 259.9°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#1F4481
RGBrgb(31, 68, 129)
HSLhsl(217, 61%, 31%)
HSVhsv(217, 76%, 51%)
CMYKcmyk(76%, 47.3%, 0%, 49.4%)
CIE-LABlab(29.44, 9.59, -38.26)
CIE-LCHlch(29.44, 39.45, 284.07°)
OKLaboklab(39.47% -0.0196 -0.1097)
OKLCHoklch(39.47% 0.111 259.9)
XYZxyz(6.5932, 6.0098, 21.5772)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4481 #815C1F
analogous
#1F7581 #1F4481 #2B1F81
triadic
#1F4481 #811F44 #44811F
tetradic
#1F4481 #811F75 #815C1F #1F812B
square
#1F4481 #811F75 #815C1F #1F812B
split-complementary
#1F4481 #812B1F #75811F
monochromatic
#07101E #132A50 #1F4481 #2B5EB2 #477CD3

Accessibility & contrast

On white

9.54
#1F4481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#1F4481 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4481
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4481#FFFFFF#000000##FFFFFF
##1F44811.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244A83
Deuteranopia (green-blind)
#0F4180
Tritanopia (blue-blind)
#00525C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f4481;
/* rgb */ color: rgb(31, 68, 129);
/* oklch */ color: oklch(39.5% 0.111 259.9);
Tailwind
colors: {
  custom: {
    50: '#6977a6',
    500: '#1f4481',
    950: '#000000',
  },
}
SCSS
$custom: #1f4481;
$custom-light: #6977a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4481",
  "rgb": {
    "r": 31,
    "g": 68,
    "b": 129
  },
  "hsl": {
    "h": 217.347,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.39471,
    "c": 0.11139,
    "h": 259.9
  },
  "luminance": 0.06011
}

Semantic roles & 50–950 ramp

primary
#1F4481
secondary
#B48B48
accent
#A843E4
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1F4481

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

Preview Lab → · Contrast checker → · Palette generator →

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