#1F4381#1F4381

#1F4381 is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.2% C 0.113 H 260.5°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#1F4381
RGBrgb(31, 67, 129)
HSLhsl(218, 61%, 31%)
HSVhsv(218, 76%, 51%)
CMYKcmyk(76%, 48.1%, 0%, 49.4%)
CIE-LABlab(29.13, 10.28, -38.75)
CIE-LCHlch(29.13, 40.09, 284.85°)
OKLaboklab(39.24% -0.0186 -0.1111)
OKLCHoklch(39.24% 0.113 260.5)
XYZxyz(6.5332, 5.8899, 21.5572)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4381 #815D1F
analogous
#1F7481 #1F4381 #2C1F81
triadic
#1F4381 #811F43 #43811F
tetradic
#1F4381 #811F74 #815D1F #1F812C
square
#1F4381 #811F74 #815D1F #1F812C
split-complementary
#1F4381 #812C1F #74811F
monochromatic
#07101E #132950 #1F4381 #2B5DB2 #477BD3

Accessibility & contrast

On white

9.64
#1F4381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#1F4381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4381
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4381#FFFFFF#000000##FFFFFF
##1F43811.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224983
Deuteranopia (green-blind)
#0B4080
Tritanopia (blue-blind)
#00525B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f4381;
/* rgb */ color: rgb(31, 67, 129);
/* oklch */ color: oklch(39.2% 0.113 260.5);
Tailwind
colors: {
  custom: {
    50: '#6976a6',
    500: '#1f4381',
    950: '#000000',
  },
}
SCSS
$custom: #1f4381;
$custom-light: #6976a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4381",
  "rgb": {
    "r": 31,
    "g": 67,
    "b": 129
  },
  "hsl": {
    "h": 217.959,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.39236,
    "c": 0.11267,
    "h": 260.5
  },
  "luminance": 0.05891
}

Semantic roles & 50–950 ramp

primary
#1F4381
secondary
#B48C48
accent
#A943E4
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1F4381

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

Preview Lab → · Contrast checker → · Palette generator →

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