#1F3983#1F3983

#1F3983 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.1% C 0.129 H 265.7°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#1F3983
RGBrgb(31, 57, 131)
HSLhsl(224, 62%, 32%)
HSVhsv(224, 76%, 51%)
CMYKcmyk(76.3%, 56.5%, 0%, 48.6%)
CIE-LABlab(26.32, 18.03, -44.54)
CIE-LCHlch(26.32, 48.05, 292.04°)
OKLaboklab(37.14% -0.0096 -0.1283)
OKLCHoklch(37.14% 0.129 265.7)
XYZxyz(6.1235, 4.8556, 22.0828)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3983 #83691F
analogous
#1F6B83 #1F3983 #371F83
triadic
#1F3983 #831F39 #39831F
tetradic
#1F3983 #831F6B #83691F #1F8337
square
#1F3983 #831F6B #83691F #1F8337
split-complementary
#1F3983 #83371F #6B831F
monochromatic
#080E20 #132352 #1F3983 #2B4FB4 #496DD4

Accessibility & contrast

On white

10.65
#1F3983 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#1F3983 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3983
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3983#FFFFFF#000000##FFFFFF
##1F39831.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004386
Deuteranopia (green-blind)
#003A82
Tritanopia (blue-blind)
#004B58
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f3983;
/* rgb */ color: rgb(31, 57, 131);
/* oklch */ color: oklch(37.1% 0.129 265.7);
Tailwind
colors: {
  custom: {
    50: '#6a6ea8',
    500: '#1f3983',
    950: '#000000',
  },
}
SCSS
$custom: #1f3983;
$custom-light: #6a6ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3983",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 131
  },
  "hsl": {
    "h": 224.4,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37139,
    "c": 0.1287,
    "h": 265.7
  },
  "luminance": 0.04856
}

Semantic roles & 50–950 ramp

primary
#1F3983
secondary
#B69948
accent
#BB43E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #1F3983

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

Preview Lab → · Contrast checker → · Palette generator →

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