#1F3784#1F3784

#1F3784 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.8% C 0.133 H 266.6°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#1F3784
RGBrgb(31, 55, 132)
HSLhsl(226, 62%, 32%)
HSVhsv(226, 77%, 52%)
CMYKcmyk(76.5%, 58.3%, 0%, 48.2%)
CIE-LABlab(25.83, 19.83, -45.96)
CIE-LCHlch(25.83, 50.06, 293.33°)
OKLaboklab(36.8% -0.0079 -0.1325)
OKLCHoklch(36.8% 0.133 266.6)
XYZxyz(6.0947, 4.6890, 22.4092)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3784 #846C1F
analogous
#1F6984 #1F3784 #3A1F84
triadic
#1F3784 #841F37 #37841F
tetradic
#1F3784 #841F69 #846C1F #1F843A
square
#1F3784 #841F69 #846C1F #1F843A
split-complementary
#1F3784 #843A1F #69841F
monochromatic
#080E21 #132252 #1F3784 #2B4CB6 #496AD4

Accessibility & contrast

On white

10.84
#1F3784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#1F3784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3784
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3784#FFFFFF#000000##FFFFFF
##1F37841.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004287
Deuteranopia (green-blind)
#003982
Tritanopia (blue-blind)
#004A58
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f3784;
/* rgb */ color: rgb(31, 55, 132);
/* oklch */ color: oklch(36.8% 0.133 266.6);
Tailwind
colors: {
  custom: {
    50: '#6a6da8',
    500: '#1f3784',
    950: '#000000',
  },
}
SCSS
$custom: #1f3784;
$custom-light: #6a6da8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3784",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 132
  },
  "hsl": {
    "h": 225.743,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36796,
    "c": 0.13278,
    "h": 266.6
  },
  "luminance": 0.0469
}

Semantic roles & 50–950 ramp

primary
#1F3784
secondary
#B79C48
accent
#BE43E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #1F3784

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

Preview Lab → · Contrast checker → · Palette generator →

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