#1F3CA8#1F3CA8

#1F3CA8 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.1% C 0.176 H 266.5°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#1F3CA8
RGBrgb(31, 60, 168)
HSLhsl(227, 69%, 39%)
HSVhsv(227, 82%, 66%)
CMYKcmyk(81.5%, 64.3%, 0%, 34.1%)
CIE-LABlab(30.28, 30.49, -60.75)
CIE-LCHlch(30.28, 67.97, 296.65°)
OKLaboklab(41.07% -0.0108 -0.1758)
OKLCHoklch(41.07% 0.176 266.5)
XYZxyz(9.2463, 6.3491, 37.7764)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3CA8 #A88B1F
analogous
#1F81A8 #1F3CA8 #471FA8
triadic
#1F3CA8 #A81F3C #3CA81F
tetradic
#1F3CA8 #A81F81 #A88B1F #1FA847
square
#1F3CA8 #A81F81 #A88B1F #1FA847
split-complementary
#1F3CA8 #A8471F #81A81F
monochromatic
#0C1741 #152A74 #1F3CA8 #2C51D8 #607BE2

Accessibility & contrast

On white

9.25
#1F3CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#1F3CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3CA8
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3CA8#FFFFFF#000000##FFFFFF
##1F3CA81.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAB
Deuteranopia (green-blind)
#0041A6
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f3ca8;
/* rgb */ color: rgb(31, 60, 168);
/* oklch */ color: oklch(41.1% 0.176 266.5);
Tailwind
colors: {
  custom: {
    50: '#7371c3',
    500: '#1f3ca8',
    950: '#000000',
  },
}
SCSS
$custom: #1f3ca8;
$custom-light: #7371c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3ca8",
  "rgb": {
    "r": 31,
    "g": 60,
    "b": 168
  },
  "hsl": {
    "h": 227.299,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41069,
    "c": 0.17618,
    "h": 266.5
  },
  "luminance": 0.0635
}

Semantic roles & 50–950 ramp

primary
#1F3CA8
secondary
#C6B05D
accent
#C73CEC
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #1F3CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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