#1F3AA0#1F3AA0

#1F3AA0 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.9% C 0.168 H 266.8°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#1F3AA0
RGBrgb(31, 58, 160)
HSLhsl(227, 68%, 37%)
HSVhsv(227, 81%, 63%)
CMYKcmyk(80.6%, 63.8%, 0%, 37.3%)
CIE-LABlab(29.04, 28.75, -57.94)
CIE-LCHlch(29.04, 64.69, 296.39°)
OKLaboklab(39.93% -0.0095 -0.1677)
OKLCHoklch(39.93% 0.168 266.8)
XYZxyz(8.4211, 5.8545, 33.9371)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3AA0 #A0851F
analogous
#1F7AA0 #1F3AA0 #451FA0
triadic
#1F3AA0 #A01F3A #3AA01F
tetradic
#1F3AA0 #A01F7A #A0851F #1FA045
square
#1F3AA0 #A01F7A #A0851F #1FA045
split-complementary
#1F3AA0 #A0451F #7AA01F
monochromatic
#0B1539 #15276D #1F3AA0 #294DD3 #5A76DF

Accessibility & contrast

On white

9.67
#1F3AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#1F3AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3AA0
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3AA0#FFFFFF#000000##FFFFFF
##1F3AA01.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA3
Deuteranopia (green-blind)
#003F9E
Tritanopia (blue-blind)
#005567
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f3aa0;
/* rgb */ color: rgb(31, 58, 160);
/* oklch */ color: oklch(39.9% 0.168 266.8);
Tailwind
colors: {
  custom: {
    50: '#7170bd',
    500: '#1f3aa0',
    950: '#000000',
  },
}
SCSS
$custom: #1f3aa0;
$custom-light: #7170bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3aa0",
  "rgb": {
    "r": 31,
    "g": 58,
    "b": 160
  },
  "hsl": {
    "h": 227.442,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39935,
    "c": 0.16793,
    "h": 266.8
  },
  "luminance": 0.05855
}

Semantic roles & 50–950 ramp

primary
#1F3AA0
secondary
#C3AD58
accent
#C63DEA
background
#F7F6FB
surface
#EDECF7
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #1F3AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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