#1F3AA8#1F3AA8

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

Color values

HEX#1F3AA8
RGBrgb(31, 58, 168)
HSLhsl(228, 69%, 39%)
HSVhsv(228, 82%, 66%)
CMYKcmyk(81.5%, 65.5%, 0%, 34.1%)
CIE-LABlab(29.77, 31.81, -61.58)
CIE-LCHlch(29.77, 69.31, 297.32°)
OKLaboklab(40.7% -0.0097 -0.1783)
OKLCHoklch(40.7% 0.179 266.9)
XYZxyz(9.1435, 6.1435, 37.7421)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3AA8 #A88D1F
analogous
#1F7FA8 #1F3AA8 #491FA8
triadic
#1F3AA8 #A81F3A #3AA81F
tetradic
#1F3AA8 #A81F7F #A88D1F #1FA849
square
#1F3AA8 #A81F7F #A88D1F #1FA849
split-complementary
#1F3AA8 #A8491F #7FA81F
monochromatic
#0C1641 #152874 #1F3AA8 #2C4ED8 #6079E2

Accessibility & contrast

On white

9.42
#1F3AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#1F3AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3AA8
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3AA8#FFFFFF#000000##FFFFFF
##1F3AA81.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAB
Deuteranopia (green-blind)
#0040A6
Tritanopia (blue-blind)
#00576B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f3aa8;
/* rgb */ color: rgb(31, 58, 168);
/* oklch */ color: oklch(40.7% 0.179 266.9);
Tailwind
colors: {
  custom: {
    50: '#7470c3',
    500: '#1f3aa8',
    950: '#000000',
  },
}
SCSS
$custom: #1f3aa8;
$custom-light: #7470c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3aa8",
  "rgb": {
    "r": 31,
    "g": 58,
    "b": 168
  },
  "hsl": {
    "h": 228.175,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40697,
    "c": 0.17855,
    "h": 266.9
  },
  "luminance": 0.06145
}

Semantic roles & 50–950 ramp

primary
#1F3AA8
secondary
#C6B15D
accent
#C93CEC
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #1F3AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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