#1F3FA0#1F3FA0

#1F3FA0 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.9% C 0.162 H 265.6°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#1F3FA0
RGBrgb(31, 63, 160)
HSLhsl(225, 68%, 37%)
HSVhsv(225, 81%, 63%)
CMYKcmyk(80.6%, 60.6%, 0%, 37.3%)
CIE-LABlab(30.36, 25.38, -55.79)
CIE-LCHlch(30.36, 61.29, 294.47°)
OKLaboklab(40.91% -0.0125 -0.1613)
OKLCHoklch(40.91% 0.162 265.6)
XYZxyz(8.6855, 6.3834, 34.0252)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3FA0 #A0801F
analogous
#1F80A0 #1F3FA0 #3F1FA0
triadic
#1F3FA0 #A01F3F #3FA01F
tetradic
#1F3FA0 #A01F80 #A0801F #1FA03F
square
#1F3FA0 #A01F80 #A0801F #1FA03F
split-complementary
#1F3FA0 #A03F1F #80A01F
monochromatic
#0B1739 #152B6D #1F3FA0 #2953D3 #5A7BDF

Accessibility & contrast

On white

9.22
#1F3FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#1F3FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3FA0
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3FA0#FFFFFF#000000##FFFFFF
##1F3FA01.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA3
Deuteranopia (green-blind)
#00429E
Tritanopia (blue-blind)
#005869
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f3fa0;
/* rgb */ color: rgb(31, 63, 160);
/* oklch */ color: oklch(40.9% 0.162 265.6);
Tailwind
colors: {
  custom: {
    50: '#7173bd',
    500: '#1f3fa0',
    950: '#000000',
  },
}
SCSS
$custom: #1f3fa0;
$custom-light: #7173bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3fa0",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 160
  },
  "hsl": {
    "h": 225.116,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40914,
    "c": 0.16178,
    "h": 265.6
  },
  "luminance": 0.06384
}

Semantic roles & 50–950 ramp

primary
#1F3FA0
secondary
#C3A858
accent
#BF3DEA
background
#F7F6FB
surface
#EDECF7
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1F3FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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