#1F3CA1#1F3CA1

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

Color values

HEX#1F3CA1
RGBrgb(31, 60, 161)
HSLhsl(227, 68%, 38%)
HSVhsv(227, 81%, 63%)
CMYKcmyk(80.7%, 62.7%, 0%, 36.9%)
CIE-LABlab(29.65, 27.80, -57.55)
CIE-LCHlch(29.65, 63.91, 295.78°)
OKLaboklab(40.41% -0.0107 -0.1665)
OKLCHoklch(40.41% 0.167 266.3)
XYZxyz(8.6117, 6.0952, 34.4339)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3CA1 #A1841F
analogous
#1F7DA1 #1F3CA1 #431FA1
triadic
#1F3CA1 #A11F3C #3CA11F
tetradic
#1F3CA1 #A11F7D #A1841F #1FA143
square
#1F3CA1 #A11F7D #A1841F #1FA143
split-complementary
#1F3CA1 #A1431F #7DA11F
monochromatic
#0B163A #15296E #1F3CA1 #294FD4 #5B79DF

Accessibility & contrast

On white

9.46
#1F3CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#1F3CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3CA1
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3CA1#FFFFFF#000000##FFFFFF
##1F3CA11.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f3ca1;
/* rgb */ color: rgb(31, 60, 161);
/* oklch */ color: oklch(40.4% 0.167 266.3);
Tailwind
colors: {
  custom: {
    50: '#7271be',
    500: '#1f3ca1',
    950: '#000000',
  },
}
SCSS
$custom: #1f3ca1;
$custom-light: #7271be;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3ca1",
  "rgb": {
    "r": 31,
    "g": 60,
    "b": 161
  },
  "hsl": {
    "h": 226.615,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40414,
    "c": 0.16683,
    "h": 266.3
  },
  "luminance": 0.06096
}

Semantic roles & 50–950 ramp

primary
#1F3CA1
secondary
#C4AC58
accent
#C43DEB
background
#F7F6FB
surface
#EDECF7
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #1F3CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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