#1F4783#1F4783

#1F4783 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.3% C 0.111 H 258.5°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#1F4783
RGBrgb(31, 71, 131)
HSLhsl(216, 62%, 32%)
HSVhsv(216, 76%, 51%)
CMYKcmyk(76.3%, 45.8%, 0%, 48.6%)
CIE-LABlab(30.49, 8.35, -37.82)
CIE-LCHlch(30.49, 38.73, 282.44°)
OKLaboklab(40.32% -0.022 -0.1083)
OKLCHoklch(40.32% 0.111 258.5)
XYZxyz(6.9136, 6.4357, 22.3462)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4783 #835B1F
analogous
#1F7983 #1F4783 #291F83
triadic
#1F4783 #831F47 #47831F
tetradic
#1F4783 #831F79 #835B1F #1F8329
square
#1F4783 #831F79 #835B1F #1F8329
split-complementary
#1F4783 #83291F #79831F
monochromatic
#081120 #132C52 #1F4783 #2B62B4 #4980D4

Accessibility & contrast

On white

9.18
#1F4783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#1F4783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4783
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4783#FFFFFF#000000##FFFFFF
##1F47831.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294D85
Deuteranopia (green-blind)
#154482
Tritanopia (blue-blind)
#00555E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f4783;
/* rgb */ color: rgb(31, 71, 131);
/* oklch */ color: oklch(40.3% 0.111 258.5);
Tailwind
colors: {
  custom: {
    50: '#6979a7',
    500: '#1f4783',
    950: '#000000',
  },
}
SCSS
$custom: #1f4783;
$custom-light: #6979a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4783",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 131
  },
  "hsl": {
    "h": 216,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40322,
    "c": 0.11052,
    "h": 258.5
  },
  "luminance": 0.06436
}

Semantic roles & 50–950 ramp

primary
#1F4783
secondary
#B68A48
accent
#A443E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #1F4783

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

Preview Lab → · Contrast checker → · Palette generator →

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