#1F3E83#1F3E83

#1F3E83 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.2% C 0.122 H 263.5°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#1F3E83
RGBrgb(31, 62, 131)
HSLhsl(221, 62%, 32%)
HSVhsv(221, 76%, 51%)
CMYKcmyk(76.3%, 52.7%, 0%, 48.6%)
CIE-LABlab(27.78, 14.54, -42.18)
CIE-LCHlch(27.78, 44.62, 289.02°)
OKLaboklab(38.24% -0.0138 -0.1213)
OKLCHoklch(38.24% 0.122 263.5)
XYZxyz(6.3830, 5.3746, 22.1693)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3E83 #83641F
analogous
#1F7083 #1F3E83 #321F83
triadic
#1F3E83 #831F3E #3E831F
tetradic
#1F3E83 #831F70 #83641F #1F8332
square
#1F3E83 #831F70 #83641F #1F8332
split-complementary
#1F3E83 #83321F #70831F
monochromatic
#080F20 #132752 #1F3E83 #2B55B4 #4974D4

Accessibility & contrast

On white

10.12
#1F3E83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#1F3E83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3E83
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3E83#FFFFFF#000000##FFFFFF
##1F3E831.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134685
Deuteranopia (green-blind)
#003D82
Tritanopia (blue-blind)
#004F5A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f3e83;
/* rgb */ color: rgb(31, 62, 131);
/* oklch */ color: oklch(38.2% 0.122 263.5);
Tailwind
colors: {
  custom: {
    50: '#6a72a8',
    500: '#1f3e83',
    950: '#000000',
  },
}
SCSS
$custom: #1f3e83;
$custom-light: #6a72a8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3e83",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 131
  },
  "hsl": {
    "h": 221.4,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38243,
    "c": 0.12209,
    "h": 263.5
  },
  "luminance": 0.05375
}

Semantic roles & 50–950 ramp

primary
#1F3E83
secondary
#B69448
accent
#B343E5
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1F3E83

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

Preview Lab → · Contrast checker → · Palette generator →

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