#1F52A4#1F52A4

#1F52A4 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.3% C 0.143 H 259.7°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#1F52A4
RGBrgb(31, 82, 164)
HSLhsl(217, 68%, 38%)
HSVhsv(217, 81%, 64%)
CMYKcmyk(81.1%, 50%, 0%, 35.7%)
CIE-LABlab(35.99, 14.12, -49.05)
CIE-LCHlch(35.99, 51.04, 286.06°)
OKLaboklab(45.28% -0.0257 -0.1411)
OKLCHoklch(45.28% 0.143 259.7)
XYZxyz(10.2808, 9.0050, 36.3111)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F52A4 #A4711F
analogous
#1F94A4 #1F52A4 #2E1FA4
triadic
#1F52A4 #A41F52 #52A41F
tetradic
#1F52A4 #A41F94 #A4711F #1FA42E
square
#1F52A4 #A41F94 #A4711F #1FA42E
split-complementary
#1F52A4 #A42E1F #94A41F
monochromatic
#0C1F3D #153871 #1F52A4 #2A6CD7 #5D8FE0

Accessibility & contrast

On white

7.50
#1F52A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#1F52A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F52A4
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F52A4#FFFFFF#000000##FFFFFF
##1F52A41.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215BA7
Deuteranopia (green-blind)
#004FA2
Tritanopia (blue-blind)
#006673
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #1f52a4;
/* rgb */ color: rgb(31, 82, 164);
/* oklch */ color: oklch(45.3% 0.143 259.7);
Tailwind
colors: {
  custom: {
    50: '#7182bf',
    500: '#1f52a4',
    950: '#000000',
  },
}
SCSS
$custom: #1f52a4;
$custom-light: #7182bf;
$custom-dark: #000000;
JSON
{
  "hex": "#1f52a4",
  "rgb": {
    "r": 31,
    "g": 82,
    "b": 164
  },
  "hsl": {
    "h": 216.992,
    "s": 68.205,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45276,
    "c": 0.14344,
    "h": 259.7
  },
  "luminance": 0.09006
}

Semantic roles & 50–950 ramp

primary
#1F52A4
secondary
#C59C5A
accent
#A83DEB
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F52A4

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

Preview Lab → · Contrast checker → · Palette generator →

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