#1F4883#1F4883

#1F4883 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.6% C 0.109 H 257.9°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#1F4883
RGBrgb(31, 72, 131)
HSLhsl(215, 62%, 32%)
HSVhsv(215, 76%, 51%)
CMYKcmyk(76.3%, 45%, 0%, 48.6%)
CIE-LABlab(30.79, 7.67, -37.33)
CIE-LCHlch(30.79, 38.11, 281.61°)
OKLaboklab(40.56% -0.0229 -0.1068)
OKLCHoklch(40.56% 0.109 257.9)
XYZxyz(6.9777, 6.5640, 22.3676)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4883 #835A1F
analogous
#1F7A83 #1F4883 #281F83
triadic
#1F4883 #831F48 #48831F
tetradic
#1F4883 #831F7A #835A1F #1F8328
square
#1F4883 #831F7A #835A1F #1F8328
split-complementary
#1F4883 #83281F #7A831F
monochromatic
#081220 #132D52 #1F4883 #2B63B4 #4982D4

Accessibility & contrast

On white

9.08
#1F4883 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#1F4883 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4883
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4883#FFFFFF#000000##FFFFFF
##1F48831.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4D85
Deuteranopia (green-blind)
#184482
Tritanopia (blue-blind)
#00565F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f4883;
/* rgb */ color: rgb(31, 72, 131);
/* oklch */ color: oklch(40.6% 0.109 257.9);
Tailwind
colors: {
  custom: {
    50: '#697aa7',
    500: '#1f4883',
    950: '#000000',
  },
}
SCSS
$custom: #1f4883;
$custom-light: #697aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4883",
  "rgb": {
    "r": 31,
    "g": 72,
    "b": 131
  },
  "hsl": {
    "h": 215.4,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.4056,
    "c": 0.10928,
    "h": 257.9
  },
  "luminance": 0.06565
}

Semantic roles & 50–950 ramp

primary
#1F4883
secondary
#B68948
accent
#A243E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #1F4883

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

Preview Lab → · Contrast checker → · Palette generator →

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