#1F52C2#1F52C2

#1F52C2 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.7% C 0.184 H 262.9°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#1F52C2
RGBrgb(31, 82, 194)
HSLhsl(221, 72%, 44%)
HSVhsv(221, 84%, 76%)
CMYKcmyk(84%, 57.7%, 0%, 23.9%)
CIE-LABlab(38.23, 25.93, -63.12)
CIE-LCHlch(38.23, 68.24, 292.33°)
OKLaboklab(47.68% -0.0227 -0.1825)
OKLCHoklch(47.68% 0.184 262.9)
XYZxyz(13.3165, 10.2193, 52.2991)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F52C2 #C28F1F
analogous
#1FA4C2 #1F52C2 #3E1FC2
triadic
#1F52C2 #C21F52 #52C21F
tetradic
#1F52C2 #C21FA4 #C28F1F #1FC23E
square
#1F52C2 #C21FA4 #C28F1F #1FC23E
split-complementary
#1F52C2 #C23E1F #A4C21F
monochromatic
#0E2558 #173C8D #1F52C2 #3E71E0 #7398E9

Accessibility & contrast

On white

6.90
#1F52C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#1F52C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F52C2
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F52C2#FFFFFF#000000##FFFFFF
##1F52C21.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#0053C0
Tritanopia (blue-blind)
#006E82
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #1f52c2;
/* rgb */ color: rgb(31, 82, 194);
/* oklch */ color: oklch(47.7% 0.184 262.9);
Tailwind
colors: {
  custom: {
    50: '#7882d5',
    500: '#1f52c2',
    950: '#000000',
  },
}
SCSS
$custom: #1f52c2;
$custom-light: #7882d5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f52c2",
  "rgb": {
    "r": 31,
    "g": 82,
    "b": 194
  },
  "hsl": {
    "h": 221.227,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47682,
    "c": 0.1839,
    "h": 262.9
  },
  "luminance": 0.10221
}

Semantic roles & 50–950 ramp

primary
#1F52C2
secondary
#CFB16D
accent
#B639EF
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #1F52C2

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

Preview Lab → · Contrast checker → · Palette generator →

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