#1F3BBC#1F3BBC

#1F3BBC is a dark, highly saturated blue. Relative luminance 0.070; OKLCH L 42.8% C 0.203 H 266.8°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#1F3BBC
RGBrgb(31, 59, 188)
HSLhsl(229, 72%, 43%)
HSVhsv(229, 84%, 74%)
CMYKcmyk(83.5%, 68.6%, 0%, 26.3%)
CIE-LABlab(31.92, 38.61, -69.95)
CIE-LCHlch(31.92, 79.90, 298.90°)
OKLaboklab(42.84% -0.0112 -0.2027)
OKLCHoklch(42.84% 0.203 266.8)
XYZxyz(11.2030, 7.0487, 48.3373)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3BBC #BCA01F
analogous
#1F8ABC #1F3BBC #511FBC
triadic
#1F3BBC #BC1F3B #3BBC1F
tetradic
#1F3BBC #BC1F8A #BCA01F #1FBC51
square
#1F3BBC #BC1F8A #BCA01F #1FBC51
split-complementary
#1F3BBC #BC511F #8ABC1F
monochromatic
#0E1A53 #162B87 #1F3BBC #3A57DE #6E84E7

Accessibility & contrast

On white

8.71
#1F3BBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#1F3BBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3BBC
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3BBC#FFFFFF#000000##FFFFFF
##1F3BBC1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C0
Deuteranopia (green-blind)
#0044BA
Tritanopia (blue-blind)
#005F77
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f3bbc;
/* rgb */ color: rgb(31, 59, 188);
/* oklch */ color: oklch(42.8% 0.203 266.8);
Tailwind
colors: {
  custom: {
    50: '#7971d1',
    500: '#1f3bbc',
    950: '#000000',
  },
}
SCSS
$custom: #1f3bbc;
$custom-light: #7971d1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3bbc",
  "rgb": {
    "r": 31,
    "g": 59,
    "b": 188
  },
  "hsl": {
    "h": 229.299,
    "s": 71.689,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42844,
    "c": 0.20305,
    "h": 266.8
  },
  "luminance": 0.0705
}

Semantic roles & 50–950 ramp

primary
#1F3BBC
secondary
#CDBC69
accent
#CE39EE
background
#F8F6FD
surface
#EFECFA
border
#CAC7D3
text
#0B0714
muted
#7C7A83

Preview Lab

Preview with #1F3BBC

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

Preview Lab → · Contrast checker → · Palette generator →

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