#1F3CA0#1F3CA0

#1F3CA0 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.3% C 0.165 H 266.3°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#1F3CA0
RGBrgb(31, 60, 160)
HSLhsl(227, 68%, 37%)
HSVhsv(227, 81%, 63%)
CMYKcmyk(80.6%, 62.5%, 0%, 37.3%)
CIE-LABlab(29.56, 27.41, -57.09)
CIE-LCHlch(29.56, 63.33, 295.65°)
OKLaboklab(40.32% -0.0107 -0.1651)
OKLCHoklch(40.32% 0.165 266.3)
XYZxyz(8.5239, 6.0601, 33.9714)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3CA0 #A0831F
analogous
#1F7CA0 #1F3CA0 #431FA0
triadic
#1F3CA0 #A01F3C #3CA01F
tetradic
#1F3CA0 #A01F7C #A0831F #1FA043
square
#1F3CA0 #A01F7C #A0831F #1FA043
split-complementary
#1F3CA0 #A0431F #7CA01F
monochromatic
#0B1639 #15296D #1F3CA0 #294FD3 #5A78DF

Accessibility & contrast

On white

9.49
#1F3CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#1F3CA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3CA0
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3CA0#FFFFFF#000000##FFFFFF
##1F3CA01.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA3
Deuteranopia (green-blind)
#00409E
Tritanopia (blue-blind)
#005668
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f3ca0;
/* rgb */ color: rgb(31, 60, 160);
/* oklch */ color: oklch(40.3% 0.165 266.3);
Tailwind
colors: {
  custom: {
    50: '#7171bd',
    500: '#1f3ca0',
    950: '#000000',
  },
}
SCSS
$custom: #1f3ca0;
$custom-light: #7171bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3ca0",
  "rgb": {
    "r": 31,
    "g": 60,
    "b": 160
  },
  "hsl": {
    "h": 226.512,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40322,
    "c": 0.16548,
    "h": 266.3
  },
  "luminance": 0.06061
}

Semantic roles & 50–950 ramp

primary
#1F3CA0
secondary
#C3AB58
accent
#C43DEA
background
#F7F6FB
surface
#EDECF7
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #1F3CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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