#1F4182#1F4182

#1F4182 is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.8% C 0.117 H 261.8°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#1F4182
RGBrgb(31, 65, 130)
HSLhsl(219, 61%, 32%)
HSVhsv(219, 76%, 51%)
CMYKcmyk(76.2%, 50%, 0%, 49%)
CIE-LABlab(28.60, 12.06, -40.23)
CIE-LCHlch(28.60, 42.00, 286.69°)
OKLaboklab(38.85% -0.0166 -0.1155)
OKLCHoklch(38.85% 0.117 261.8)
XYZxyz(6.4832, 5.6829, 21.8700)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4182 #82601F
analogous
#1F7382 #1F4182 #2F1F82
triadic
#1F4182 #821F41 #41821F
tetradic
#1F4182 #821F73 #82601F #1F822F
square
#1F4182 #821F73 #82601F #1F822F
split-complementary
#1F4182 #822F1F #73821F
monochromatic
#07101F #132851 #1F4182 #2B5AB3 #4878D3

Accessibility & contrast

On white

9.83
#1F4182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#1F4182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4182
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4182#FFFFFF#000000##FFFFFF
##1F41821.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4884
Deuteranopia (green-blind)
#003F81
Tritanopia (blue-blind)
#00505B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f4182;
/* rgb */ color: rgb(31, 65, 130);
/* oklch */ color: oklch(38.8% 0.117 261.8);
Tailwind
colors: {
  custom: {
    50: '#6975a7',
    500: '#1f4182',
    950: '#000000',
  },
}
SCSS
$custom: #1f4182;
$custom-light: #6975a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4182",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 130
  },
  "hsl": {
    "h": 219.394,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38848,
    "c": 0.11671,
    "h": 261.8
  },
  "luminance": 0.05684
}

Semantic roles & 50–950 ramp

primary
#1F4182
secondary
#B58F48
accent
#AD43E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1F4182

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

Preview Lab → · Contrast checker → · Palette generator →

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