#1F3E80#1F3E80

#1F3E80 is a dark, moderate blue. Relative luminance 0.053; OKLCH L 38.0% C 0.118 H 263.1°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#1F3E80
RGBrgb(31, 62, 128)
HSLhsl(221, 61%, 31%)
HSVhsv(221, 76%, 50%)
CMYKcmyk(75.8%, 51.6%, 0%, 49.8%)
CIE-LABlab(27.56, 13.34, -40.66)
CIE-LCHlch(27.56, 42.79, 288.16°)
OKLaboklab(38.01% -0.0142 -0.1168)
OKLCHoklch(38.01% 0.118 263.1)
XYZxyz(6.1826, 5.2944, 21.1140)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3E80 #80611F
analogous
#1F6E80 #1F3E80 #301F80
triadic
#1F3E80 #801F3E #3E801F
tetradic
#1F3E80 #801F6E #80611F #1F8030
square
#1F3E80 #801F6E #80611F #1F8030
split-complementary
#1F3E80 #80301F #6E801F
monochromatic
#070E1D #13264F #1F3E80 #2B56B1 #4774D2

Accessibility & contrast

On white

10.20
#1F3E80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#1F3E80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3E80
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3E80#FFFFFF#000000##FFFFFF
##1F3E801.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174682
Deuteranopia (green-blind)
#003D7F
Tritanopia (blue-blind)
#004E59
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f3e80;
/* rgb */ color: rgb(31, 62, 128);
/* oklch */ color: oklch(38.0% 0.118 263.1);
Tailwind
colors: {
  custom: {
    50: '#6972a5',
    500: '#1f3e80',
    950: '#000000',
  },
}
SCSS
$custom: #1f3e80;
$custom-light: #6972a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3e80",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 128
  },
  "hsl": {
    "h": 220.825,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38007,
    "c": 0.1177,
    "h": 263.1
  },
  "luminance": 0.05295
}

Semantic roles & 50–950 ramp

primary
#1F3E80
secondary
#B39148
accent
#B144E4
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1F3E80

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

Preview Lab → · Contrast checker → · Palette generator →

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