#1F3AA6#1F3AA6

#1F3AA6 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.5% C 0.176 H 266.9°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#1F3AA6
RGBrgb(31, 58, 166)
HSLhsl(228, 69%, 39%)
HSVhsv(228, 81%, 65%)
CMYKcmyk(81.3%, 65.1%, 0%, 34.9%)
CIE-LABlab(29.59, 31.05, -60.67)
CIE-LCHlch(29.59, 68.16, 297.10°)
OKLaboklab(40.51% -0.0096 -0.1757)
OKLCHoklch(40.51% 0.176 266.9)
XYZxyz(8.9587, 6.0695, 36.7684)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3AA6 #A68B1F
analogous
#1F7DA6 #1F3AA6 #471FA6
triadic
#1F3AA6 #A61F3A #3AA61F
tetradic
#1F3AA6 #A61F7D #A68B1F #1FA647
square
#1F3AA6 #A61F7D #A68B1F #1FA647
split-complementary
#1F3AA6 #A6471F #7DA61F
monochromatic
#0C163F #152872 #1F3AA6 #2B4DD7 #5E79E1

Accessibility & contrast

On white

9.48
#1F3AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#1F3AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3AA6
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3AA6#FFFFFF#000000##FFFFFF
##1F3AA61.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA9
Deuteranopia (green-blind)
#003FA4
Tritanopia (blue-blind)
#00576A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f3aa6;
/* rgb */ color: rgb(31, 58, 166);
/* oklch */ color: oklch(40.5% 0.176 266.9);
Tailwind
colors: {
  custom: {
    50: '#7370c1',
    500: '#1f3aa6',
    950: '#000000',
  },
}
SCSS
$custom: #1f3aa6;
$custom-light: #7370c1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3aa6",
  "rgb": {
    "r": 31,
    "g": 58,
    "b": 166
  },
  "hsl": {
    "h": 228,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40505,
    "c": 0.17592,
    "h": 266.9
  },
  "luminance": 0.06071
}

Semantic roles & 50–950 ramp

primary
#1F3AA6
secondary
#C5B05B
accent
#C83CEB
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #1F3AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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