#1F3783#1F3783

#1F3783 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.7% C 0.131 H 266.5°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#1F3783
RGBrgb(31, 55, 131)
HSLhsl(226, 62%, 32%)
HSVhsv(226, 76%, 51%)
CMYKcmyk(76.3%, 58%, 0%, 48.6%)
CIE-LABlab(25.75, 19.43, -45.47)
CIE-LCHlch(25.75, 49.45, 293.14°)
OKLaboklab(36.71% -0.0079 -0.1311)
OKLCHoklch(36.71% 0.131 266.5)
XYZxyz(6.0266, 4.6617, 22.0505)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3783 #836B1F
analogous
#1F6983 #1F3783 #391F83
triadic
#1F3783 #831F37 #37831F
tetradic
#1F3783 #831F69 #836B1F #1F8339
square
#1F3783 #831F69 #836B1F #1F8339
split-complementary
#1F3783 #83391F #69831F
monochromatic
#080D20 #132252 #1F3783 #2B4CB4 #496AD4

Accessibility & contrast

On white

10.87
#1F3783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#1F3783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3783
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3783#FFFFFF#000000##FFFFFF
##1F37831.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f3783;
/* rgb */ color: rgb(31, 55, 131);
/* oklch */ color: oklch(36.7% 0.131 266.5);
Tailwind
colors: {
  custom: {
    50: '#6a6da8',
    500: '#1f3783',
    950: '#000000',
  },
}
SCSS
$custom: #1f3783;
$custom-light: #6a6da8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3783",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 131
  },
  "hsl": {
    "h": 225.6,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36709,
    "c": 0.13134,
    "h": 266.5
  },
  "luminance": 0.04662
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F3783

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

Preview Lab → · Contrast checker → · Palette generator →

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