#1F3BA1#1F3BA1

#1F3BA1 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.2% C 0.168 H 266.6°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#1F3BA1
RGBrgb(31, 59, 161)
HSLhsl(227, 68%, 38%)
HSVhsv(227, 81%, 63%)
CMYKcmyk(80.7%, 63.4%, 0%, 36.9%)
CIE-LABlab(29.39, 28.47, -57.98)
CIE-LCHlch(29.39, 64.59, 296.15°)
OKLaboklab(40.22% -0.0101 -0.1677)
OKLCHoklch(40.22% 0.168 266.6)
XYZxyz(8.5598, 5.9914, 34.4166)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3BA1 #A1851F
analogous
#1F7CA1 #1F3BA1 #441FA1
triadic
#1F3BA1 #A11F3B #3BA11F
tetradic
#1F3BA1 #A11F7C #A1851F #1FA144
square
#1F3BA1 #A11F7C #A1851F #1FA144
split-complementary
#1F3BA1 #A1441F #7CA11F
monochromatic
#0B153A #15286E #1F3BA1 #294ED4 #5B78DF

Accessibility & contrast

On white

9.55
#1F3BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#1F3BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3BA1
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3BA1#FFFFFF#000000##FFFFFF
##1F3BA11.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA4
Deuteranopia (green-blind)
#003F9F
Tritanopia (blue-blind)
#005668
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f3ba1;
/* rgb */ color: rgb(31, 59, 161);
/* oklch */ color: oklch(40.2% 0.168 266.6);
Tailwind
colors: {
  custom: {
    50: '#7270be',
    500: '#1f3ba1',
    950: '#000000',
  },
}
SCSS
$custom: #1f3ba1;
$custom-light: #7270be;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3ba1",
  "rgb": {
    "r": 31,
    "g": 59,
    "b": 161
  },
  "hsl": {
    "h": 227.077,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40221,
    "c": 0.16805,
    "h": 266.6
  },
  "luminance": 0.05992
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F3BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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