#1F3BAE#1F3BAE

#1F3BAE is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.5% C 0.185 H 266.8°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#1F3BAE
RGBrgb(31, 59, 174)
HSLhsl(228, 70%, 40%)
HSVhsv(228, 82%, 68%)
CMYKcmyk(82.2%, 66.1%, 0%, 31.8%)
CIE-LABlab(30.58, 33.42, -63.85)
CIE-LCHlch(30.58, 72.06, 297.63°)
OKLaboklab(41.46% -0.0104 -0.1849)
OKLCHoklch(41.46% 0.185 266.8)
XYZxyz(9.7663, 6.4741, 40.7711)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3BAE #AE921F
analogous
#1F82AE #1F3BAE #4B1FAE
triadic
#1F3BAE #AE1F3B #3BAE1F
tetradic
#1F3BAE #AE1F82 #AE921F #1FAE4B
square
#1F3BAE #AE1F82 #AE921F #1FAE4B
split-complementary
#1F3BAE #AE4B1F #82AE1F
monochromatic
#0C1846 #16297A #1F3BAE #3051DA #647DE3

Accessibility & contrast

On white

9.15
#1F3BAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#1F3BAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3BAE
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3BAE#FFFFFF#000000##FFFFFF
##1F3BAE1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB2
Deuteranopia (green-blind)
#0041AC
Tritanopia (blue-blind)
#005A6F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f3bae;
/* rgb */ color: rgb(31, 59, 174);
/* oklch */ color: oklch(41.5% 0.185 266.8);
Tailwind
colors: {
  custom: {
    50: '#7571c7',
    500: '#1f3bae',
    950: '#000000',
  },
}
SCSS
$custom: #1f3bae;
$custom-light: #7571c7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3bae",
  "rgb": {
    "r": 31,
    "g": 59,
    "b": 174
  },
  "hsl": {
    "h": 228.252,
    "s": 69.756,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4146,
    "c": 0.18521,
    "h": 266.8
  },
  "luminance": 0.06475
}

Semantic roles & 50–950 ramp

primary
#1F3BAE
secondary
#C8B460
accent
#CA3BED
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #1F3BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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