#1F4284#1F4284

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

Color values

HEX#1F4284
RGBrgb(31, 66, 132)
HSLhsl(219, 62%, 32%)
HSVhsv(219, 77%, 52%)
CMYKcmyk(76.5%, 50%, 0%, 48.2%)
CIE-LABlab(29.04, 12.18, -40.77)
CIE-LCHlch(29.04, 42.55, 286.63°)
OKLaboklab(39.23% -0.0172 -0.1171)
OKLCHoklch(39.23% 0.118 261.6)
XYZxyz(6.6767, 5.8529, 22.6032)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4284 #84611F
analogous
#1F7584 #1F4284 #2F1F84
triadic
#1F4284 #841F42 #42841F
tetradic
#1F4284 #841F75 #84611F #1F842F
square
#1F4284 #841F75 #84611F #1F842F
split-complementary
#1F4284 #842F1F #75841F
monochromatic
#081021 #132952 #1F4284 #2B5BB6 #4979D4

Accessibility & contrast

On white

9.67
#1F4284 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#1F4284 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4284
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4284#FFFFFF#000000##FFFFFF
##1F42841.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4986
Deuteranopia (green-blind)
#004083
Tritanopia (blue-blind)
#00525C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f4284;
/* rgb */ color: rgb(31, 66, 132);
/* oklch */ color: oklch(39.2% 0.118 261.6);
Tailwind
colors: {
  custom: {
    50: '#6a75a8',
    500: '#1f4284',
    950: '#000000',
  },
}
SCSS
$custom: #1f4284;
$custom-light: #6a75a8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4284",
  "rgb": {
    "r": 31,
    "g": 66,
    "b": 132
  },
  "hsl": {
    "h": 219.208,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3923,
    "c": 0.11834,
    "h": 261.6
  },
  "luminance": 0.05854
}

Semantic roles & 50–950 ramp

primary
#1F4284
secondary
#B79048
accent
#AD43E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1F4284

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

Preview Lab → · Contrast checker → · Palette generator →

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