#1F3EA6#1F3EA6

#1F3EA6 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.3% C 0.171 H 266.0°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#1F3EA6
RGBrgb(31, 62, 166)
HSLhsl(226, 69%, 39%)
HSVhsv(226, 81%, 65%)
CMYKcmyk(81.3%, 62.7%, 0%, 34.9%)
CIE-LABlab(30.61, 28.39, -58.99)
CIE-LCHlch(30.61, 65.47, 295.70°)
OKLaboklab(41.26% -0.0119 -0.1707)
OKLCHoklch(41.26% 0.171 266)
XYZxyz(9.1682, 6.4886, 36.8382)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3EA6 #A6871F
analogous
#1F81A6 #1F3EA6 #431FA6
triadic
#1F3EA6 #A61F3E #3EA61F
tetradic
#1F3EA6 #A61F81 #A6871F #1FA643
square
#1F3EA6 #A61F81 #A6871F #1FA643
split-complementary
#1F3EA6 #A6431F #81A61F
monochromatic
#0C173F #152B72 #1F3EA6 #2B52D7 #5E7CE1

Accessibility & contrast

On white

9.14
#1F3EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#1F3EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3EA6
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3EA6#FFFFFF#000000##FFFFFF
##1F3EA61.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA9
Deuteranopia (green-blind)
#0042A4
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f3ea6;
/* rgb */ color: rgb(31, 62, 166);
/* oklch */ color: oklch(41.3% 0.171 266.0);
Tailwind
colors: {
  custom: {
    50: '#7373c1',
    500: '#1f3ea6',
    950: '#000000',
  },
}
SCSS
$custom: #1f3ea6;
$custom-light: #7373c1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3ea6",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 166
  },
  "hsl": {
    "h": 226.222,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41263,
    "c": 0.1711,
    "h": 266
  },
  "luminance": 0.0649
}

Semantic roles & 50–950 ramp

primary
#1F3EA6
secondary
#C5AD5B
accent
#C33CEB
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1F3EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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