#1F3DA1#1F3DA1

#1F3DA1 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.6% C 0.166 H 266.1°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#1F3DA1
RGBrgb(31, 61, 161)
HSLhsl(226, 68%, 38%)
HSVhsv(226, 81%, 63%)
CMYKcmyk(80.7%, 62.1%, 0%, 36.9%)
CIE-LABlab(29.91, 27.12, -57.12)
CIE-LCHlch(29.91, 63.24, 295.40°)
OKLaboklab(40.61% -0.0113 -0.1652)
OKLCHoklch(40.61% 0.166 266.1)
XYZxyz(8.6646, 6.2010, 34.4516)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3DA1 #A1831F
analogous
#1F7EA1 #1F3DA1 #421FA1
triadic
#1F3DA1 #A11F3D #3DA11F
tetradic
#1F3DA1 #A11F7E #A1831F #1FA142
square
#1F3DA1 #A11F7E #A1831F #1FA142
split-complementary
#1F3DA1 #A1421F #7EA11F
monochromatic
#0B163A #152A6E #1F3DA1 #2950D4 #5B7ADF

Accessibility & contrast

On white

9.37
#1F3DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#1F3DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3DA1
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3DA1#FFFFFF#000000##FFFFFF
##1F3DA11.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA4
Deuteranopia (green-blind)
#00419F
Tritanopia (blue-blind)
#005769
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f3da1;
/* rgb */ color: rgb(31, 61, 161);
/* oklch */ color: oklch(40.6% 0.166 266.1);
Tailwind
colors: {
  custom: {
    50: '#7172be',
    500: '#1f3da1',
    950: '#000000',
  },
}
SCSS
$custom: #1f3da1;
$custom-light: #7172be;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3da1",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 161
  },
  "hsl": {
    "h": 226.154,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40609,
    "c": 0.1656,
    "h": 266.1
  },
  "luminance": 0.06202
}

Semantic roles & 50–950 ramp

primary
#1F3DA1
secondary
#C4AB58
accent
#C33DEB
background
#F7F6FB
surface
#EDECF7
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #1F3DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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