#1F52B4#1F52B4

#1F52B4 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.5% C 0.165 H 261.7°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#1F52B4
RGBrgb(31, 82, 180)
HSLhsl(219, 71%, 41%)
HSVhsv(219, 83%, 71%)
CMYKcmyk(82.8%, 54.4%, 0%, 29.4%)
CIE-LABlab(37.15, 20.46, -56.68)
CIE-LCHlch(37.15, 60.25, 289.85°)
OKLaboklab(46.53% -0.0237 -0.1636)
OKLCHoklch(46.53% 0.165 261.7)
XYZxyz(11.8176, 9.6197, 44.4051)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F52B4 #B4811F
analogous
#1F9DB4 #1F52B4 #371FB4
triadic
#1F52B4 #B41F52 #52B41F
tetradic
#1F52B4 #B41F9D #B4811F #1FB437
square
#1F52B4 #B41F9D #B4811F #1FB437
split-complementary
#1F52B4 #B4371F #9DB41F
monochromatic
#0D224C #163A80 #1F52B4 #346EDC #6893E5

Accessibility & contrast

On white

7.18
#1F52B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#1F52B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F52B4
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F52B4#FFFFFF#000000##FFFFFF
##1F52B41.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB7
Deuteranopia (green-blind)
#0051B2
Tritanopia (blue-blind)
#006A7B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #1f52b4;
/* rgb */ color: rgb(31, 82, 180);
/* oklch */ color: oklch(46.5% 0.165 261.7);
Tailwind
colors: {
  custom: {
    50: '#7581cb',
    500: '#1f52b4',
    950: '#000000',
  },
}
SCSS
$custom: #1f52b4;
$custom-light: #7581cb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f52b4",
  "rgb": {
    "r": 31,
    "g": 82,
    "b": 180
  },
  "hsl": {
    "h": 219.463,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46526,
    "c": 0.16527,
    "h": 261.7
  },
  "luminance": 0.09621
}

Semantic roles & 50–950 ramp

primary
#1F52B4
secondary
#CBA864
accent
#B03AED
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #1F52B4

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

Preview Lab → · Contrast checker → · Palette generator →

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