#1F3FA6#1F3FA6

#1F3FA6 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.5% C 0.170 H 265.8°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#1F3FA6
RGBrgb(31, 63, 166)
HSLhsl(226, 69%, 39%)
HSVhsv(226, 81%, 65%)
CMYKcmyk(81.3%, 62%, 0%, 34.9%)
CIE-LABlab(30.87, 27.72, -58.57)
CIE-LCHlch(30.87, 64.79, 295.33°)
OKLaboklab(41.46% -0.0124 -0.1694)
OKLCHoklch(41.46% 0.17 265.8)
XYZxyz(9.2231, 6.5984, 36.8565)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3FA6 #A6861F
analogous
#1F82A6 #1F3FA6 #421FA6
triadic
#1F3FA6 #A61F3F #3FA61F
tetradic
#1F3FA6 #A61F82 #A6861F #1FA642
square
#1F3FA6 #A61F82 #A6861F #1FA642
split-complementary
#1F3FA6 #A6421F #82A61F
monochromatic
#0C183F #152B72 #1F3FA6 #2B54D7 #5E7DE1

Accessibility & contrast

On white

9.05
#1F3FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#1F3FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3FA6
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3FA6#FFFFFF#000000##FFFFFF
##1F3FA61.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA9
Deuteranopia (green-blind)
#0043A4
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1f3fa6;
/* rgb */ color: rgb(31, 63, 166);
/* oklch */ color: oklch(41.5% 0.170 265.8);
Tailwind
colors: {
  custom: {
    50: '#7373c1',
    500: '#1f3fa6',
    950: '#000000',
  },
}
SCSS
$custom: #1f3fa6;
$custom-light: #7373c1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3fa6",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 166
  },
  "hsl": {
    "h": 225.778,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41457,
    "c": 0.16989,
    "h": 265.8
  },
  "luminance": 0.06599
}

Semantic roles & 50–950 ramp

primary
#1F3FA6
secondary
#C5AC5B
accent
#C23CEB
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1F3FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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