#1F3AAE#1F3AAE

#1F3AAE is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.3% C 0.186 H 266.9°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#1F3AAE
RGBrgb(31, 58, 174)
HSLhsl(229, 70%, 40%)
HSVhsv(229, 82%, 68%)
CMYKcmyk(82.2%, 66.7%, 0%, 31.8%)
CIE-LABlab(30.33, 34.07, -64.25)
CIE-LCHlch(30.33, 72.72, 297.94°)
OKLaboklab(41.28% -0.0099 -0.1861)
OKLCHoklch(41.28% 0.186 266.9)
XYZxyz(9.7154, 6.3723, 40.7541)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3AAE #AE931F
analogous
#1F82AE #1F3AAE #4B1FAE
triadic
#1F3AAE #AE1F3A #3AAE1F
tetradic
#1F3AAE #AE1F82 #AE931F #1FAE4B
square
#1F3AAE #AE1F82 #AE931F #1FAE4B
split-complementary
#1F3AAE #AE4B1F #82AE1F
monochromatic
#0C1746 #16297A #1F3AAE #3050DA #647CE3

Accessibility & contrast

On white

9.23
#1F3AAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#1F3AAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3AAE
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3AAE#FFFFFF#000000##FFFFFF
##1F3AAE1.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB2
Deuteranopia (green-blind)
#0041AC
Tritanopia (blue-blind)
#00596F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f3aae;
/* rgb */ color: rgb(31, 58, 174);
/* oklch */ color: oklch(41.3% 0.186 266.9);
Tailwind
colors: {
  custom: {
    50: '#7570c7',
    500: '#1f3aae',
    950: '#000000',
  },
}
SCSS
$custom: #1f3aae;
$custom-light: #7570c7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3aae",
  "rgb": {
    "r": 31,
    "g": 58,
    "b": 174
  },
  "hsl": {
    "h": 228.671,
    "s": 69.756,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4128,
    "c": 0.18638,
    "h": 266.9
  },
  "luminance": 0.06373
}

Semantic roles & 50–950 ramp

primary
#1F3AAE
secondary
#C8B560
accent
#CB3BED
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #1F3AAE

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

Preview Lab → · Contrast checker → · Palette generator →

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