#1F4081#1F4081

#1F4081 is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.5% C 0.117 H 262.2°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#1F4081
RGBrgb(31, 64, 129)
HSLhsl(220, 61%, 31%)
HSVhsv(220, 76%, 51%)
CMYKcmyk(76%, 50.4%, 0%, 49.4%)
CIE-LABlab(28.23, 12.35, -40.21)
CIE-LCHlch(28.23, 42.06, 287.07°)
OKLaboklab(38.54% -0.0159 -0.1155)
OKLCHoklch(38.54% 0.117 262.2)
XYZxyz(6.3595, 5.5424, 21.4992)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4081 #81601F
analogous
#1F7181 #1F4081 #2F1F81
triadic
#1F4081 #811F40 #40811F
tetradic
#1F4081 #811F71 #81601F #1F812F
square
#1F4081 #811F71 #81601F #1F812F
split-complementary
#1F4081 #812F1F #71811F
monochromatic
#070F1E #132850 #1F4081 #2B58B2 #4776D3

Accessibility & contrast

On white

9.96
#1F4081 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#1F4081 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4081
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4081#FFFFFF#000000##FFFFFF
##1F40811.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4783
Deuteranopia (green-blind)
#003E80
Tritanopia (blue-blind)
#004F5A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f4081;
/* rgb */ color: rgb(31, 64, 129);
/* oklch */ color: oklch(38.5% 0.117 262.2);
Tailwind
colors: {
  custom: {
    50: '#6974a6',
    500: '#1f4081',
    950: '#000000',
  },
}
SCSS
$custom: #1f4081;
$custom-light: #6974a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4081",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 129
  },
  "hsl": {
    "h": 219.796,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38542,
    "c": 0.11655,
    "h": 262.2
  },
  "luminance": 0.05543
}

Semantic roles & 50–950 ramp

primary
#1F4081
secondary
#B49048
accent
#AE43E4
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1F4081

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

Preview Lab → · Contrast checker → · Palette generator →

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